Can anyone help me with a Calculated Value attribute customization script for Story Points?
![]() We are attempting to write an attribute customization calculated value script to clear the story points of a Story when the Story moves to the Invalid state. I am able to do something similar with the time spent field so I thought I could do it with Story Points. I have written the script included below and have set it as the calculated value script for the Story Points attribute of the Story work item along wiht a Dependency on the Status field. When I use it, I don't get any error but I also don't see the Story Points field change. The id of the '0 pts' story point value is "0" and that is what I am returning.
Does anyone know what I am doing wrong?
Thank you,
Jamie.
|
Accepted answer
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Feb 17 '18, 9:36 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER As far as I am aware, story points is an enumeration. In that case you would set a specific literal that represents the null. It might be customized so you should check what it is.
Jamie Berry selected this answer as the correct answer
Comments ![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
These attribute definitions do not exist:
Ralph,
Thank you for the additional information. I will read through the references and work on debugging my code. I appreciate your help.
Jamie.
Ralph,
Thank you again for the help. I was able to clean up my script and get things to work.
Jamie.
|
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.