It's all about the answers!

Ask a question

Querying and updating workitem status in RTC using REST/ OSLC

Sunil Kumar R (1.1k13044) | asked Sep 17 '14, 10:58 a.m.
All, a quick query on querying and updating workitems in RTC using REST/ OSLC
Similar to Forum query #32674 but retrying since that entry is pretty old.

a. HPALM  - RTC Synchronizer is used. i.e., synchronize defects from HPALM to RTC
b. Method used to update WI status in RTC is...

HTTP PUT on https://rtcServer:9443/ccm/resource/itemName/

1) In order to update status we the action id is needed(bugzillaWorkflow.action.verify), 
currently the action id is fetched using process configuration xml from eclipse IDE and store it in oracle DB
This activity requires manual intervention, hence we are in quest to automate this....
Solutions that we expect for automating this activity are:-
1) To fetch the action id of the state using the RESTFull webservice of RTC (Ex: bugzillaWorkflow.action.verify )(most preferred)

2) To access process configuration xml using RESTFull webservice , so we can parse the action id (if possible)

Any inputs on this please?

2 answers

permanent link
Donald Nong (14.5k414) | answered Sep 17 '14, 10:43 p.m.
I think it has been discussed before. Check this post and let me know whether your request is any different.

permanent link
Piotr Aniola (3.7k11738) | answered Sep 17 '14, 11:42 a.m.
edited Sep 17 '14, 11:42 a.m.
I don't know about REST API, but it is possible to do it in the plain java client. I suppose you could write a program that retrieves the relevant action ID on demand.

There is a snippet in the following article: that explains how to do it. Please see the
part of the article. Please let me know on ST if you need any further information.

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.