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

Dojo script not working on Save WI, but works on attribute dependencies

I have written dojo scrip to update counter value on change of another attribute, But i want that script should execute only on save WI, but its not working.

Note: its working when i set any dependency attribute and change that attribute

Please help

0 votes



One answer

Permanent link
I haven't realli dug into this but calculated values have in general worked for me. as described in https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Calculated_values which explains the general execution you should see.

Script-based calculated values

Note: You can find general information about script-based attribute customization in the Using scripts for attribute customization section.

If you configure a Script-based calculated value, the script will be executed in three cases:

  • When a work item is created, the script is executed
  • When a work item is saved, the script is executed to recalculate the value.
  • When an attribute which the current attribute depends on is changed, the value of the current attribute is recalculated. Depending on the presentations of the two attributes this may not work in all cases.

0 votes

Comments

 Thanks Ralph

I also believe the same, but do you have any idea what could be the probable reason for the script not executing on save.

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: Jul 28 '16, 11:40 a.m.

Question was seen: 2,191 times

Last updated: Jul 29 '16, 3:48 p.m.

Related questions
Confirmation Cancel Confirm