Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to set the value of custom attribute of type enumeration using javascript. ?

 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

0 votes


Accepted answer

Permanent link

 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

0 votes

Comments

Thanks Ralph.


One other answer

Permanent link

 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

0 votes

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

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jan 18 '19, 3:06 p.m.

Question was seen: 1,782 times

Last updated: Feb 01 '19, 2:31 a.m.

Confirmation Cancel Confirm