How can if a work item is resolved or not using javascript
![]() I am creating a calculated value that sets a delivery status to "Late" for some condition ONLY IF the state is not resolved.
How can I check if the work item is resolved or not using javascript? Please help
|
One answer
![]()
Ralph Schoon (62.3k●3●36●43)
| answered Jan 30 '17, 8:49 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jan 30 '17, 8:53 a.m.
To get the current ID of the state attribute.
var currentstateID = workitem.getValue("internalState");
To get the current dsplaylabel of the state attribute.
Based on that information you have to decide if the work item is resolved or not.
|
Comments
Something like