Forums

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

set next month date

Mattia Battan March 19, 2024

hello,
I am doing an automation for a project in our Finance department.
I need every 28th of the month, it creates a ticket, setting as "Due date" the 3rd of the following month.
As a smart value I can only do for example: {{now.plusDays(5)}} however if the month in question has 28 or 31 days how can I do it?

Thanks

1 answer

1 accepted

2 votes
Answer accepted
Walter Buggenhout
Community Champion
March 19, 2024

Hi @Mattia Battan,

The following smart value should fix your problem, since it adds 3 days to the last day of the current month, regardless of the number of days in a month:

{{now.endOfMonth.plusDays(3)}}

 Hope this helps!

Suggest an answer

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

Atlassian Community Events