I need to calculate how many days it was since the risk became actualized Issue.
when Risk becomes the Issue, we set the date "Issue Date"
I need to calculate the number of days between that date and today - and record it in "Days in" scripted field.
I tried to use Edit Issue action and set this field using this script:
{
"fields": {
"Days in": { "value": {{issue.customfield_10803.diff(issue.customfield_10820).days}}
}
}
No bueno! what am I doing wrong?