Forums

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

Cannot calculating date using a smart value in Jira Automation

Adrianna Bell September 28, 2025

At the beginning of my automation, I have a variable created called Digit.  It uses this {{issue.labels.match(".*?(\\d+)$")|number}} and my log files indicate it is populating correctly.  

Now I am trying to create another date variable based on label values but no matter what syntax I use, I can't get it to accurately calculate the date I need.  Within my if statement, the formula I'm trying to create is based on Digit=nth day of the next month.

These are the values I've tried and their respective output but can't seem to find the correct combination using my Digit variable. I saw one article that indicated I should use {{#now}}func= but I'm not clear on the difference between using that and using using {{now}}.  The first formula listed below is what I need but I need to use my variable Digit instead of hard-coding the 13. This is making me crazy!! 

Formula

Output

{{now.endOfMonth.plusBusinessDays(13).shortDate}}

10/17/25 CORRECT

{{#now}}func=endOfMonth.plusBusinessDays(13).shortDate{{/}}

INCORRECT – 2025-09-28T21:05:43.8-0400 doesn’t appear to have calculated anything in the function

{{#now}}func=endOfMonth.plusBusinessDays(Digit).shortDate{{/}}

INCORRECT – 2025-09-28T21:05:43.8-0400 doesn’t appear to have calculated anything in the function

{{now.endOfMonth.plusBusinessDays(Digit).shortDate}}

No result

{{now.endOfMonth.plusBusinessDays(Digit.asNumber).shortDate}}

No result

{{now.endOfMonth.plusBusinessDays({{Digit}}).shortDate}}

error Failed to get value for now.endOfMonth.plusBusinessDays({{Digit:

0 answers

Suggest an answer

Log in or Sign up to answer