Forums

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

Date functions not working in Automation

Marc J
Contributor
June 27, 2019

I have been trying to set the due date using automation if an issue is created without a due date.  The only function that seems to work is {{now}}.  If I try using {{now.plusDays(3)}} or any other functional to set the date the value comes back as empty.  I know this because in addition to setting the date I have another action to send it to me in an email, and the value is always empty except if I just use {{now}}.  Even trying to send an email with {{now.jiraDate}} sends an empty value.  

It seems like the functions are broken for some reason, but they don't give any errors.

We are running JIRA 7.9.2.

1 answer

1 accepted

0 votes
Answer accepted
andreas
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.
June 27, 2019

Hi Marc,

It depends a bit on which version of Automation for Jira you are running. The syntax you're using was introduced in later versions of our product.

If you are on an older version, you may have to use the old date function syntax: https://docs.automationforjira.com/knowledge-base/archived-date-functions.html#archived-date-functions

Or you can upgrade to the latest to get the newer syntax.

If you're still having issues, I'd recommend you raise a support request with us!

Cheers,
Andreas

Marc J
Contributor
June 28, 2019

Hi, Andreas,

Thanks so much for the information.  This has solved the problem. 

It is odd to me that the new function formats did not generate any errors in the audit log.  Nevertheless, this is now working and I am grateful for the assistance.  I will check with our admins to see what version of Automation we have installed.

Thanks again,

Marc

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events