How to use automation to add a specific Sprint to an issue when there are multiple Next/Active Sprints on a Board?
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Summary
When multiple active or upcoming sprints exist on a board, automation by default selects and updates the first sprint in the list to an issue. To address this, we can configure the automation rule to explicitly choose the desired sprint from the list.
Solution
Understanding the Dropdown Behavior
- In the automation rule setup, the dropdown field displays the board name, not the sprint name.
- Automation will pick the first active/next sprint on the selected board.
Specifying a Sprint Using Its ID
To assign a specific sprint, bypass the default behaviour by directly specifying the sprint ID. Follow these steps:
Fetch the Sprint ID:
Use a JQL search to locate the sprint and retrieve its unique ID.
Configure the Automation Rule:
In the automation rule's Advanced Section, add the following JSON snippet, replacing<sprint ID>with the actual ID of your desired sprint:
(Check the attached screen-recording){ "fields": { "sprint": <sprint ID> } }
