The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I have, what I think should be a very simple task.
I want to set my due dates based on remaining time. The remaining time is calculated as a smart value in days {{RemDays}}
I can get the value of RemDays correctly, but I want to use it to determine the new due date. The following works:
{{issue.duedate.plusBusinessDays(6)}}
But no matter what I try, I can't get my smart value passed to plusBusinessDays.
I've tried:
plusBusinessDays({{#=}}{{RemDays}}{{/}})
plusBusinessDays({{RemDays}})
plusBusinessDays(RemDays)
Does anyone know how I can do this?
Hi @Tim Foster
as far as I know variables are of type string.
According to documentation (see link) there is a method to convert to number:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/
Could you try to use RemDays.asNumbet when adding?
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello!
The first thing I would confirm is whether RemDays is a numeric value since that's the only format the function will accept. After that, see if any of these work:
{{issue.duedate.plusBusinessDays(RemDays)}}
{{#issue.duedate}}func=plusBusinessDays({{RemDays}}){{/}}
If neither of them works and your field is confirmed numeric, share the output of the Automation Rule - what error does it throw?
You can create a Log Action component to check what output your rule is returning as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.