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

Can we create/update Approval field in work item type through Rest APIs?

I want to create and update approval field in work item type through Rest API

Is there any API available?
If there is Plain Java API available, please attach documentation link

0 votes



4 answers

Permanent link

I had actually started it as a follow up action as that made intuitive sense to me, but I ran into issues getting it to work due to some internal state management that EWM does. I could only get it to work as a precondition.

1 vote


Permanent link

As far as I can tell, there is no public supported REST or otherwise public supported HTTP based API available to create, update Approval data in EWM work items. There is a reportable REST API that allows to GET the data - look at the example on my blog.


The only public supported API's that support create and update Approval data in EWM work items are the EWM SDK and the Plain Java Client Libraries. An example is shown in https://rsjazz.wordpress.com/2012/10/01/adding-approvals-to-work-items-using-the-plain-java-client-libraries/ .

0 votes


Permanent link

I have solved this via a custom precondition. See it in action here:



--
Kevin Murphy
IBM Champion

0 votes

Comments

Nice Kevin, and thanks for sharing. You use the SDK in preconditions.

1 vote


Permanent link

I appreciate the kind words, Ralph. Your blog helped tremendously in getting this done. Hardest part was the UI.

0 votes

Comments

Yes, UI is hard. I should mention, that a precondition/advisor should not work in the work item that triggers it. Things like this should be done in a follow up action/participant. I had blogged about that.

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
× 11,092

Question asked: Jul 22 '24, 2:47 a.m.

Question was seen: 1,587 times

Last updated: Jul 22 '24, 3:53 a.m.

Confirmation Cancel Confirm