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

how to change the state of the approver in approval's tab using java api?

Hi,
I want to change the state of approver from "pending" to "approved" using java client libraries.
But iam getting an exception as :"com.ibm.team.repository.common.internal.ImmutablePropertyException"
Any suggestions on how it can be done?
Thanks in advance!

0 votes



One answer

Permanent link
Use
com.ibm.team.workitem.common.model.IApproval.setStateIdentifier(com.ibm.team.workitem.common.model.WorkItemApprovals.APPROVED_STATE.getIdentifier())

0 votes

Comments

Note, the user doing this needs to be the approver or have JazzAdmin permissions, I guess.

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
× 234
× 89

Question asked: Feb 05 '16, 8:18 a.m.

Question was seen: 2,727 times

Last updated: Feb 05 '16, 8:40 a.m.

Confirmation Cancel Confirm