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

RTC REST API - Invoke Workflow Action

 I'm trying to invoke an action in a specified work item using the REST API, without success. The request detais:


Method: PUT
Headers:
Accept: application/json
X-Jazz-CSRF-Prevent: 00002jbPIhA0xUThm4NlmkL0EOH:18hu78q1a
Content-Type: application/json

Data:

I receive a HTTP 200 as answer but the Work Item don't change the state.

Any guesses?

0 votes



2 answers

Permanent link
 The solution:

Post in the format:
Url: https://server/ccm/resource/itemName/com.ibm.team.workitem.WorkItem/53674?_action=com.itau.team.workflow.buildCentralizado.action.a4
Headers: 
Accept: application/json
X-Jazz-CSRF-Prevent: 00002jbPIhA0xUThm4NlmkL0EOH:18hu78q1a
Content-Type: application/json

Data:
can be an empty json object: {}


Works fine.

0 votes


Permanent link

 Hi Eric Lemes

In my case POST didn't work, so i recommend using PUT.

For other people, whose finding answer, your 'action' path is:
http://server/ccm/oslc/workflows/PROJECT_ID/actions/com.server.team.workflow.defect/

You'll find PROJECT_ID in http://server/ccm/process/project-areas/
You have to just find your project area and take your project id.

If you know jazz API, you can replace "com.server.team" to your jazz options.

Best regards
Krzysztof

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,940

Question asked: Apr 17 '14, 11:12 a.m.

Question was seen: 5,224 times

Last updated: Dec 03 '21, 7:53 a.m.

Confirmation Cancel Confirm