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 (37218) | asked Feb 05 '16, 8:18 a.m.
edited Feb 05 '16, 8:24 a.m. by Ralph Schoon (62.3k33643)
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 (62.3k33643) | 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.