Set Due date using automation

Dana.Harel December 15, 2022

Hi, 

Im using an automation which opens a task every 1st of the month. 

I want to set up the Due date field to be a specific date in the month.

For example - I want the task to open each month with a Due date to the 25th of this month. 

I tried using - {{now.startOfMonth("+25")}} 

But it's not working

Would love to get some help, Thanks

2 answers

2 accepted

1 vote
Answer accepted
Marta Woźniak-Semeniuk
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.
December 15, 2022

Hey @Dana.Harel 

1. Please try {{now.plusDays(25)}}

2. Can you please show printscreen of the whole automation if 1. doesn't help? 

0 votes
Answer accepted
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.
December 15, 2022

Hi @Dana.Harel 

There are at least two ways to do this, as described here: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/

{{now.startOfMonth.plus(24)}}  add 24 days to the 1st of the month = 25th

{{now.withDayOfMonth(25)}}  set the day of month, no matter when the rule runs, to the 25th

 

Best regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events