Auto-popute Due date field

Nur Fatin February 12, 2025

Hello,

I have a Jira Software Team Managed project, which is essentially used for tracking the team's tasks. I have automation rules set up whereby recurring tasks will be created based on a specific occurrence. For example, I have set a rule whereby on every 3rd Thursday of the month, a task will be created - Confirm TEC attendance and a Slack message will be sent to the team. The due date for this task will be on every 4th Thursday of the month.

The task creation and Slack message is successful, it works. But the Due date field is empty. I have tried below smart values in the Due date field:

{{now.startOfMonth.plusDays(21).withDayOfWeek(4)}}
{{now.startOfMonth.plusWeeks(3).withDayOfWeek(4)}}
{{now.plusWeeks(3).format("yyyy-MM-dd")}}
{{now.plusWeeks(3).withDayOfWeek(4)}}

I have also tried removing the Due date field and use the additional fields instead using this (same smart values variations as above for Due date field smart values):

{ "fields": { "dueDate": "{{now.startOfMonth.plusDays(21).withDayOfWeek(4).format('yyyy-MM-dd')}}" } }

{ "fields": { "dueDate": "

{{now.startOfMonth.nextThursday.plusWeeks(3).format('yyyy-MM-dd')}}" } }


But all methods result in the Due date field being empty.

Could anyone help to advise on this, please? I appreciate your help. Thank you.

Attached are the screenshots of my rule set up.

Screenshot 2025-02-13 at 12.09.06 PM.pngScreenshot 2025-02-13 at 12.12.09 PM.png

1 answer

0 votes
Vishal Biyani
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.
February 12, 2025

@Nur Fatin 

There looks to be a case issue. Can you try with fieldname as 

duedate

Also, if this does not work share the audit log to better understand the issue

Nur Fatin February 12, 2025

Hello @Vishal Biyani thank you for the suggestion. I have changed from dueDate to duedate, but the issue persists.

Screenshot 2025-02-13 at 2.26.01 PM.pngScreenshot 2025-02-13 at 2.26.57 PM.png

Vishal Biyani
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.
February 12, 2025

it is not working withdayOfWeek.

You can try with {{now.startOfMonth.plusWeeks(3)}}. this returns the date.

Nur Fatin February 13, 2025

Hey @Vishal Biyani thank you again for the suggestion. I managed to make it work. I think what I did was complicated, when it can be done in a simple way. For the benefit of others who are experiencing the same thing as me, here was what I did.

I added the Due date field and used this smart value: {{now.plusDays(7)}}

As this rule is triggered on every 3rd Thursday of the month and the due date is every 4th Thursday of the month, so essentially I just need to set the due date 7 days after the due date.

Suggest an answer

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

Atlassian Community Events