Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Use current sprint in jira Automation rules

snwatts6 November 3, 2023

Hi, I would like to write an automation rule that looks at the current sprint for cards that are in a done status and fix version is empty.  I am not sure how to identify the current sprint in the rule automatically.  I dont want to use the current sprint number or name as I want the automation rule to work each sprint with out making any changes. Has anyone done this before and can show me a coding example?  

1 answer

1 accepted

4 votes
Answer accepted
Jack Brickey
Community Champion
November 3, 2023

Hi @snwatts6 , welcome to the community.

you can use JQL and the "sprint in opensprints()"

so you condition would be a JQL like below...

sprint in opensprints() and status = done and fixVersion is EMPTY
snwatts6 November 3, 2023

Thank you so much.  I ran sprint in opensprint()" and this works. I was not aware of the opensprint(). Is this considered a function?   Just curious to learn more what 'functions' are out there and what else I could maybe use. 

Bill Sheboy
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.
November 3, 2023

Hi @snwatts6 -- Welcome to the Atlassian Community!

Adding to Jack's answer:

Here is the documentation on more advanced JQL searches, including a link to the list of functions (at the right side of the page):

https://support.atlassian.com/jira-software-cloud/docs/what-is-advanced-search-in-jira-cloud/

Kind regards,
Bill

snwatts6 November 3, 2023

Thank you!   You guys are awesome! 

Jack Brickey
Community Champion
November 3, 2023

Well...Bill is. I'm just along for the ride!

Like # people like this
Mark Bodha June 17, 2025

Mistaken query, apologies.

Suggest an answer

Log in or Sign up to answer