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?
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:
Let us know if you have any questions.
You are amazing! Thank you so much!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome, @KPrice
Have a nice day! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.