Forums

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

Using date variables with Jira automation smart filters is not working

Adrianna Bell September 29, 2025

@Trudy Claspill I read this dialog Solved: Jira automation to set Target End using smart valu... and tried to apply the same logic to mine automation but it isn't working.

  • I created a variable of: NewDate: {{now.endOfMonth.shortDate}} which produced the correct value.
  • I then created a variable of: BusDay: {{#NewDate.toDate}}func=plusBusinessDays({{DayNum}}) {{/}} which resulted in blank output.
  • I put a log in before the variable was created and it shows NewDate=9/30/25 and DayNum=13 which is correct.

Any ideas why this isn't working?? I'm about to pull my hair out as I've tried soooo many variations trying to get this to work.

3 answers

1 vote
David Freitez
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 29, 2025

Hi @Adrianna Bell 

I checked the implementation you suggested and hit the same problem but after testing several times, I saw that the problem was the shortDate format you are requesting to function,  if you eliminate that part, the function would return a date which is field type used for the Date operation.

 

Screenshot 2025-09-29 134325.png

So, to summaryze, use: 

NewDate: {{now.endOfMonth}}   instead of   NewDate: {{now.endOfMonth.shortDate}} 

The function you are using worked correctly for me.

Kindly give it a try and let me know if you need further help.

Also, if you consider my comment help you solve the issue, please mind to mark it as the Answer.

Kind regards,
David

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 7, 2025

Hi @Adrianna Bell 

Without seeing your entire current rule and audit log details for context...

Have you confirmed customfield_15700 contains a number, and the number is an integer?  I recommend writing the field value to the audit log to confirm it contains what you expected.

Kind regards,
Bill

0 votes
Adrianna Bell October 2, 2025

I was able to get it to work with: {{now.endOfMonth.plusBusinessDays(customfield_15700).shortDate}}.  THANK YOU!

Adrianna Bell November 7, 2025

@David Freitez I was mistaken, my formula did not work. :(  I removed the shortdate and did this {{now.endOfMonth.plusBusinessDays(customfield_15700)}} but it still produced nothing.  I have confirmed that customfield_15700 is a number field.  Any ideas?

Adrianna Bell November 7, 2025

@David Freitez I am using Jira Data Center if that makes a difference.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events