How to set Boolean attribute value using calculated value script
![]()
Hi All,
I want set boolean attribute value based on the status. How to return boolean value in caluclated value script.
Appreciate your quick help.
|
Accepted answer
![]()
Just return a boolean variable or the result of a evaluation.
For instance,
var state= workItem.getValue(WorkItemAttributes.STATE); return (state === "3" || state === "4"); Ralph Schoon selected this answer as the correct answer
Comments Hi @Gabriel,
I have the same requirement as Balamurugan mentioned, but i think it wont set the attribute value though it returns the state. Please correct me if i am wrong.
You are wrong. The comparison returns a boolean, the or operation on two booleans returns a boolean. You could also return true or false. See https://www.w3schools.com/js/js_booleans.asp |
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.