Dear Community,
Is there an option to get the earliest future sprint using JIRA Automation under a specific project.
Thank you!
Prasanna Subramaniam
Hi @prasanna Subramaniam and welcome to the Community!
I am not sure what you are trying to do, but if your idea is to use automation to assign issues automatically to the next upcoming sprint, you might be able to do so with the Edit Issue action. Select the Sprint field and from the option list select Next sprint (name of the scrum board).
Hope this helps!
Dear @Walter Buggenhout ,
Thank you for your input. Below are the details of what I am aiming to achieve:
I want to automatically create a couple of sub-tasks and assign them to specific resources for the user stories tagged to the earliest future sprint, 2 days before the sprint start date.
Is this possible ?
I think the solution will involve REST and Web Requests.
Gather a list of all future Sprints. You will be able to tell which is the oldest by checking if the json answer have array value of 0. You will need the id of the sprint, store it as variable.
Link: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-sprint-get
Check the Sprint data if the end is 2 days from now: https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-sprintid-get
You will have to perform date value difference comparison: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/
Given the name of the Sprint from the rest api GET request, use it in a JQL lookup issues to get all Stories with {{MyFoundSprint}} value.
After that you can loop the issues and perform the actions you need.
Thank you @Atlass Monster for the response. Will look into this option.
Any other Option without REST API
It looks like you're new here. Sign in or register to get started.