Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,642,074
Community Members
 
Community Events
196
Community Groups

JQL to determine what issues have been added after sprint start

Edited

If the Jira Cloud Sprint report can render an * for what items have been added after sprint start, how can I write JQL to do the same thing? From all indications of older posts that, it is not possible, However in 2018 it is crazy that we can't pull this same data out of Jira without spending more money on a plugin if the UI can access this data.

7 answers

1 accepted

Vote for JSWSERVER-20097 to have this built into JIRA Server, or JSWCLOUD-16523 for JIRA Cloud, by default.

5 votes
Daniel Turczanski - JQL Search Extensions
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Sep 02, 2021 • edited

To find the issues added after the sprint has started, you can consider using our professional indexing service:

After you install the app you can find out what issues were added after the sprint started:

issue in addedToSprintAfterStart("My board", "Sprint 5")

Make sure to check out the documentation.

I hope it helps!

Chris Christou
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 27, 2023

So to find issues that have started after the sprint, we need to install an app? 

We use JIRA 7.12 server version.

 

We could not find this information, without purchasing a JIRA add-on (Adaptavist Scriptrunner)

 

Once we had licensed it, the following JQL finds this information:

 

project = <Project Name> AND issueFunction in addedAfterSprintStart("<Sprint Board Name>") 

 

Add-on documentation available here.

one problem with this solution (i'm trying to work on the same problem in the last week or so) - the function of addedAfterSprintStart is working on on hosted jira, not on cloud jira.

@Eli Moshe

   Same. We tried using scriptrunner but it doesn't have that feature in the cloud either. It really annoys the hell out of me because the data is available in Jira Cloud, based ont he * used in the sprint report indicating what had been added to the sprint, Altassian is just handicapping their cloud product so you'll buy the cloud hosted/on-prem version. Just a dumb, dumb business practice on their part, and making me have to evaluate what other options are out there since they don't want to give the cloud version parity to hosted/on-prem @Atlassian

Agreed this is ridiculous this doesn't come out of hte box, but THANK YOU to whoever posted the JQL and tip on JIRA add-on (Adaptavist Scriptrunner). Miracle of miracles my org actually has that add-on and that JQL syntax worked perfectly!!!  I just wish i could have it come up in a Y/N as an actual field, but at least with the results i can compare them against the rest of the items in the sprint to figure out the planned/unplanned work ratio. 

Like # people like this

Count me in also for this functionality!

@Troy Spetz Thank you for the answer. Could you please specify the query for the past sprints as well.

You can determine it using Jira Automation.


Create a rule that is triggered when the field Sprint is updated and a condition to check if Sprint is in an OpenSprint(). You can add a flag in Labels and after that, build a JQL query for that Label and you will get the data you desired.

Julian Governale
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.
Jul 20, 2022

We do this as our team members need to report on issues added to an active sprint and they need to report on what day they were actually added. 

On the Edit of the issue we set the custom date field to {{now}}.  Probably not perfect, but allows the team to run a JQL for that specific sprint and then they just look for issues where the Added to Active Sprint Date is not Empty

capture-issues-added-to-active-sprint.jpg

Like # people like this

Thanks @Julian Governale for sharing this. I was trying to do the same from long time but is not working for me to get the opensprint() correctly and if condition is failing for me.  Would you mind in sharing the snippet if it is working for me? For your reference adding the snap as well, i have tried different ways as well but no luck.ActiveSprint.png

Can anyone help to cross this stage? It would be a great help.

The condition type is wrong.

 

You must select JQL Condition. 

Julian Governale
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.
Sep 08, 2022

Hi @uttam kumar bhatta , @Carlos Neto is correct, you want to use JQL

jql-condition.png

Like Carlos Neto likes this
1 vote
Deleted user Feb 11, 2020

To follow a sprint update / changes is important so implement this feature as standard functionality

Thanks for sharing! I implemented the automation and now I use Jira Cloud for Sheets to automatically run the JQL for each sprint to output the data into a report. 

I am going to play around the automation to track tickets removed from the sprint. I'd like to audit if my teams are adding and removing the same SPs per sprint. Any ideas @carlos neto or @Julian Governale 

Duh.. just answered my own question. All you need to do is edit the condition type to Value Deleted.

One thing of note, I noticed my labels were getting removed and replaced by the new label. 

Ensure that under the Labels option you select Add/remove values. By default it is set to Set value, which removes existing values and sets the new one.Screen Shot on 2022-10-21 at 14-53-06.png

Like # people like this

After further testing, this solution doesn't work because the condition is not met after the sprint value is removed. I have a work around solution, which is certainly not as elegant. It basically run an automation if the sprint value is removed to add a label. I then can search for that label at the end of each sprint.

Like Carlos Neto likes this

Good approach!

I wrongly ignored this situation. 

For your curiosity, I adopted a similar approach. I added Add comment to Issue action rather than Add Label when the Sprint field was changed or deleted.

The advantage of my approach is to get easily the date when the delete or change sprint field was made.

Issue Comments are compatible with JQL (without eJQL). Then I can create Filters without Extend Search plugin (eJQL)

0 votes
Deleted user Feb 11, 2020

you support many teams and later you want to follow up on changes, then it should be easy to see what has been lifted into the respective teams sprint after it was started

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events