Automatically change due date based on sprint changes in Jira Cloud

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.

Summary

When the sprint field is updated, you want to automatically change the due date of a work item in Jira.

The due date will automatically align with the end date of the sprint.

Create automation rule to check sprint and update due date

By implementing this rule, the work item's Due Date field will dynamically update based on the sprint changes, ensuring it reflects the latest sprint's timeline.

Basic automation rule setup

  1. Visit your project, select Project settings > Automation > Create rule
  2. Select Field value changed as the trigger
  3. Specify the Sprint field and set it to trigger on value added
  4. Add an Edit work item fields action
  5. Select the Due date field to be updated

Follow the appropriate path below based on your sprint management and board configuration.

Single active sprint on the board

If there is only one active sprint on the board and the work item is updated with just this sprint, add this for the Due Date field value:

{{issue.Sprint.endDate.jiraDate}}

Multiple active sprints on the board

If there are multiple sprints on the board or the work item is updated with completed sprints, we'll set the due date to the latest sprint's end date:

{{issue.sprint.last.endDate.jiraDate}}  

Update field not directly supported by Automation with JSON

If you are trying to update a field that is not available in the automation editor drop-down (a field other than Due Date), you can configure the rule using JSON.

You can reference the following example, replacing the field name or customfield ID as needed:

{
  "fields": {
    "<fieldName or CustomFieldID>": "{{issue.sprint.last.endDate.jiraDate}}"
  }
}

Use sprint start date instead of end date 

You can use the below smart value if you want to update any field with the start date of the sprint instead of its end date:

{{issue.sprint.last.startDate.jiraDate}} 
or
{{issue.Sprint.startDate.jiraDate}}


Last modified on May 1, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.