Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Another insanely simply question that I am struggling with

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:


But no matter what I try, I can't get my smart value passed to plusBusinessDays.

I've tried:

Does anyone know how I can do this? 

2 answers

1 accepted

1 vote
Answer accepted
Stefan Salzl Community Leader Apr 26, 2022

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:


Could you try to use RemDays.asNumbet when adding?


@Stefan Salzl you are a genius! I had tried toInt, toDouble but not toNumber. Thank you.

Like Stefan Salzl likes this
0 votes
Filipi Lima Atlassian Team Apr 26, 2022


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:


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.

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you