I am intending to set up a JIRA Automation to check if the Sprint of an issue has been updated for the currently running sprint or for the next upcoming sprint. Whenever an user does that, I'll add a comment or label so that those tickets can be picked for Grooming and Estimation ASAP. Can anyone suggest how to get the nextsprint name/id either through special value or JQL?
The challenging part in what you describe is identifying the "next upcoming sprint". I suggest separating this into two things:
If you still want an automation rule to identify both the sprint scope change and the upcoming work, the solution suggested by @Nikola Perisic will work if you have one-and-only-one upcoming sprint. Otherwise...
When you have multiple upcoming sprints in Jira AND they have their Start Date field filled in, a rule could call the REST API endpoint with the Send Web Request action to get all future sprints for the Jira board. Then it would identify the one with the minimum Start Date (i.e., the earliest one). Finally, it would use that date to create a regular expression to search the sprint list to identify the sprint's ID, testing that to compare with the issue's sprint field.
Kind regards,
Bill
Hi @Bill Sheboy @Nikola Perisic Appreciate your response. Yes, I am explicitly looking for a JIRA Automation rule to implement so that even if it's missed a comment will be logged in the ticket comments.
I already tried the approach which @Nikola Perisic had suggested but the issue is if I have multiple upcoming sprints (futureSprints()), then it'll consider all of it. How ever, my purpose is to check if a ticket which has been marked for the next sprint should not have a blank / empty Original Estimations.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the additional information!
Your rule could first test if the Original Estimate is set, and if not only then use the REST API to check the sprint values (for upcoming sprints).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried the approaches to create my JIRA automation as per the suggestions. However I found the easiest way to tackle this situation is by just naming the next sprint in the board as "Next Sprint" and then use a JQL condition
Sprint IN (OpenSprint(), "Next Sprint")
Of course, this is not the ideal way but is just a work around to get the desired result.
Thanks @Bill Sheboy and @Nikola Perisic for your suggestions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @shantanu behera
You can make something like this:
for project put your project key instead the one from the picture.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.