Forums

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

Set Automation Due Date for the following month on the 15th

KPrice
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 15, 2020

I am trying to create a due date of the 15th of the month.  But, if it is already past the 15th of the month, it needs to be the 15th of the following month.

When I do {{now.withDayOfMonth(15)}} it puts in the 15th of the current month, even when it is past that day (therefore being overdue)

Is there a way to make this work?

1 answer

1 accepted

1 vote
Answer accepted
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 18, 2020

Hello @KPrice

Welcome to the Atlassian Community!

Per your description, I understand you are trying to set the due date of issues to the 15th-day of the current month, however, if the issue was created after the 15th-day of the month, the due date must be set with the 15th day of the next month. Is that correct?

You can use the parameter {{now.endOfMonth.plusDays(15)}} to set the due date with the 15th day of the next month, using a condition to identify if the issue was created after or before the 15th day. This would be the automation rule:

Screen Shot 2020-05-18 at 20.30.11.png

Let us know if you have any questions.

KPrice
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 18, 2020

You are amazing!  Thank you so much!

Like Petter Gonçalves likes this
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 18, 2020

You are welcome, @KPrice

Have a nice day! :)

Like darren.johnson likes this
darren.johnson September 7, 2021

@Petter Gonçalves How do I do the same but I want the due date to populate with 1st Business day of the next month please ?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events