Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Querying and updating workitem status in RTC using REST/ OSLC

All, a quick query on querying and updating workitems in RTC using REST/ OSLC
Similar to Jazz.net 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/com.ibm.team.workitem.WorkItem/41358?_action=bugzillaWorkflow.action.verify

Issue:
 
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?

0 votes



2 answers

Permanent link
I think it has been discussed before. Check this post and let me know whether your request is any different.
https://jazz.net/forum/questions/152920/how-find-available-actions-to-change-states-in-rtc-with-oslc

1 vote


Permanent link
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: http://rsjazz.wordpress.com/2012/11/26/manipulating-work-item-states/ that explains how to do it. Please see the
workflowInfo.getResolveActionId(); 
part of the article. Please let me know on ST if you need any further information.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,927
× 478
× 60

Question asked: Sep 17 '14, 10:58 a.m.

Question was seen: 7,752 times

Last updated: Sep 17 '14, 10:43 p.m.

Confirmation Cancel Confirm