ClearQuest OSLC 2.0 REST API Session Variables
Accepted answer
Hi Michal,
You can you can set your own session variable by doing a PUT call to
http://server/cqweb/oslc/repo/<your-dbset>/db/<your-db>/session
Here is an example of the xml file - this sets session variable _MY_CQ_OSLC_SESSION, and clears _OTHER_CQ_SESSION (I am not suggesting you clear session variable set by CQWeb though - just an example)
<?xml version="1.0" encoding="UTF-8"?>
<cq:Session xmlns:cq="http://www.ibm.com/xmlns/prod/rational/clearquest/1.0/">
<cq:property cq:name="_MY_CQ_OSLC_SESSION">MY_OSLC_SESSSION</cq:property>
<cq:property cq:name="_OTHER_CQ_SESSION"></cq:property>
</cq:Session>
Note, you cannot retrieve session variable with OSLC call, but you can use them in your CQ hook once you set via a PUT call.
Hope this helps,
- Yuhong
Yuhong Yin
Sr. Dev Manager, ClearCase/ClearQuest Jazz Integrations
You can you can set your own session variable by doing a PUT call to
http://server/cqweb/oslc/repo/<your-dbset>/db/<your-db>/session
Here is an example of the xml file - this sets session variable _MY_CQ_OSLC_SESSION, and clears _OTHER_CQ_SESSION (I am not suggesting you clear session variable set by CQWeb though - just an example)
<?xml version="1.0" encoding="UTF-8"?>
<cq:Session xmlns:cq="http://www.ibm.com/xmlns/prod/rational/clearquest/1.0/">
<cq:property cq:name="_MY_CQ_OSLC_SESSION">MY_OSLC_SESSSION</cq:property>
<cq:property cq:name="_OTHER_CQ_SESSION"></cq:property>
</cq:Session>
Note, you cannot retrieve session variable with OSLC call, but you can use them in your CQ hook once you set via a PUT call.
Hope this helps,
- Yuhong
Yuhong Yin
Sr. Dev Manager, ClearCase/ClearQuest Jazz Integrations
3 other answers
Hi Matthew,
Thanks for quick hint. This wiki article is very helpful in general. There are some informations in "Session Management" part, but unfortunately this is not what I'm looking for.
What I would like to know is how to use clearquest session variables. I'm looking for equivalent of:
Using Session variables
Thanks for quick hint. This wiki article is very helpful in general. There are some informations in "Session Management" part, but unfortunately this is not what I'm looking for.
What I would like to know is how to use clearquest session variables. I'm looking for equivalent of:
Using Session variables