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

1 vote
Answer accepted
Walter Buggenhout
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
Site Admin
TAGS
AUG Leaders

Atlassian Community Events