It's all about the answers!

Ask a question

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


Akshata Kulkarni (37320) | asked Feb 05 '16, 8:18 a.m.
edited Feb 05 '16, 8:24 a.m. by Ralph Schoon (63.7k33648)
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!

One answer



permanent link
Ralph Schoon (63.7k33648) | answered Feb 05 '16, 8:38 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Feb 05 '16, 8:40 a.m.
Use
com.ibm.team.workitem.common.model.IApproval.setStateIdentifier(com.ibm.team.workitem.common.model.WorkItemApprovals.APPROVED_STATE.getIdentifier())


Comments
Ralph Schoon commented Feb 05 '16, 8:40 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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

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.