Contextid is nothing but OID of Change request. You can obtain the OID from CR url, oid is parameter in URL
For example:
for below URL OID is OR:wt.change2.WTChangeRequest2:103583 (replace %3A with : )
http://10.10.10.10/Windchill/app/#ptc1/tcomp/infoPage?oid=