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: |
Hello @Adrianna Bell
Variables are stored as strings. If the content is a number and you want to use it as a number in a smart value then you need to use the asNumber function to convert it.
Digit.asNumber
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.