How to set the value of custom attribute of type enumeration using javascript. ?
Suresh Raman (91●5●23●33)
| asked Jan 18 '19, 3:06 p.m.
edited Jan 21 '19, 2:39 a.m. by Ralph Schoon (63.1k●3●36●46) I have two attributes SIT and UAT based on enumeration values (not Started, In progress and Completed).
What I am trying to achieve is when testing and UAT is complete and deployed to production and production verification fails and the workitem is reopened, the values for SIT and UAT should be set to Not started.
Any help would be much appreciated.
Thanks
|
Accepted answer
Ralph Schoon (63.1k●3●36●46)
| answered Jan 21 '19, 2:39 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER The API is explained here: https://jazz.net/wiki/bin/view/Main/AttributeCustomization enumeration type attributes can be set using setValue(enumerationliteralID). A calculated value could return the desired value or the current value. Problem is, there is no real easy way to detect the state change in the calculated value. Suresh Raman selected this answer as the correct answer
|
One other answer
In my case, I have three calculated scripts that needs to executed when the state changes. I notice only one of them get executed. Is it the way it is supposed to work or am I doing something wrong?
Any help is much appreciated.
Thanks,
Suresh Raman
Comments The rules are explained here: https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Script_based_calculated_values
If there is no change in the attribute the calculated value depends on, there is no calculation.
|
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.