Need help with adding days to custom date attribute in calculated value script
I've been tasked with writing a script that will pull a date from a custom attribute called "Finding Date" and adding 'X' number of days depending on the value of another field called 'Risk'.
|
Accepted answer
Hi,
Michael Angelastro selected this answer as the correct answer
Comments
Michael Angelastro
commented Mar 02 '17, 7:23 p.m.
Thanks Andy. The first format worked! The reason it wasn't working originally was due to one of my variables. "findingdate" should have been "findingDate" |
One other answer
Ralph Schoon (63.1k●3●36●45)
| answered Feb 23 '17, 3:34 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Feb 23 '17, 3:34 a.m. I would suggest to use dojo/date and use functions such as add and difference and the like: https://dojotoolkit.org/reference-guide/1.10/dojo/date.html . I have used dojo/date to calculate the difference and it worked for me. Comments
Michael Angelastro
commented Mar 02 '17, 7:24 p.m.
Thanks, Ralph! I'll use this link for future date calculations |
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.