Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Numeric userinput variable not working with date field?

Csaba Vertessy
Contributor
June 19, 2025

Hello fine folks,

Just facing this issue: I have created a manually triggered automation rule to adjust the due date based on a user input. 

auto1.jpg

Then, I'm formatting it to number and save the new value in a new variable (using .round to remove .0 from the user input). 

auto2.jpg

The next step is to add the user input value to the current date and log the new due date. 

auto3.jpg

But for some reason it is not working for the new due date value.

auto4.jpg

But it works if I'm using a number: {{now.plusMonths(12)}} 

 

What do I miss here?

1 answer

3 votes
Trudy Claspill
Community Champion
June 19, 2025

Hello @Csaba Vertessy 

All variables are stored as string regardless of any formatting commands that you use when you create the value.

When you use it in your calculation you have to use the .asNumber formatting command within the calculation

{{now.plusMonths(varDuedatePlusMonths.asNumber)}}

Csaba Vertessy
Contributor
June 20, 2025

Hello @Trudy Claspill ,

That worked, thank you!

Trudy Claspill
Community Champion
June 20, 2025

I'm glad I could help!

Please consider clicking the Accept Answer button above my response to mark your Question as Solved. That helps other people searching the community find posts with validated solutions.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events