I would like to use a smart value with the +/- operator in the plusBusinessDays() function for setting the due date of an issue.
So this works:
{{customfield_10015.plusBusinessDays(issue.Duration)}}
but when I try to use the +/- operator
{{customfield_10015.plusBusinessDays(issue.Duration+1) }}
the script runs through with setting the due date to NULL
any ideas?
Hello @Stefan
Welcome to community.
Correct syntax is:
{{customfield_10015.plusBusinessDays(issue.Duration.plus(1)) }}
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/#Plus-Minus
Hope it helps and accept answer if issue's resolved. Thanks!
Many thanks for the quick reply @Kalyan Sattaluri!
It works :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.