how to change the state of the approver in approval's tab using java api?
![]()
Akshata Kulkarni (37●2●18)
| asked Feb 05 '16, 8:18 a.m.
edited Feb 05 '16, 8:24 a.m. by Ralph Schoon (62.3k●3●36●43)
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
![]()
Ralph Schoon (62.3k●3●36●43)
| 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()) |