It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to search issues in an open Sprint with a specific name tag

Hi 

I have a project with multiple sprints running. I want to be able to search out the issue in a particular open sprint. Each of the team use their team name in the sprint name: TEAM1_2017W47, TEAM2_2017W47. Now I want to search for all issues in the current open sprint for TEAM1:

sprint in ("TEAM1") and sprint in openSprints()

But this fails since we have some issue which was incomplete in a previous in another TEAM1, but now is in an open sprint in TEAM2.

I need a way to only search open sprints with a specific name tag. i.e. something like:

sprint in openSprints("TEAM1")

2 answers

0 votes
Tyler Brown Community Leader Dec 22, 2017

Hey Morten,

You should be able to use "sprint = [sprint name]" to search for a specific open Sprint.

Not sure if that meets all your needs or not.

Hope this helps,

Tyler

Hi

 

Thanks for your answer:-)

Unfortunately, it is not really helping me, since I do not want to put in the entire sprint name but only a the part of it that Identifies the team (to get a generic search for a metric, that will work for each open sprint without having to update the search expression)

The current sprint name would be TEAM1_2018W01.

Example: I have an issue which has the following data in the sprint field:

TEAM1_2017W45, TEAM1_2017W47, TEAM2_2017W49

(closed sprint)     ,(closed sprint)      ,(Open sprint)

Now I want to make a search that gives me all issues in the open sprint for TEAM1(as a generic search expression so that is also works in the next sprint):

sprint in ("TEAM1") and sprint in openSprints()

But this fails since the issue descried above also fulfills this expression.

I would need something like:

sprint in openSprints('sprint in ("TEAM1")')

which unfortunately is not supported.

Hi,

is there any solution for that or did you find any workaround?

I have the exact same situation and really wondering why this is not supported.

Thanks in advance!

Alex

Try this:

project = "MYPROJECT " AND Sprint in openSprints() and labels= TEAM1

Note, that you'll need to label each story first

I did not look more into it. I ended up making my own script using the rest interface. Regarding putting labels on everything, I do not want to introduce such manual processes...

@Morten Christophersen could you please describe what API did you use to get the active sprint?

Hi, I use the "sprint in openSprint" from scriptrunner plugin, and then the rest interface with some python code around it. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Agile

Overview of Advanced Roadmaps UI + Get started with Automation for Jira - Demo Den September 2020

Deliver better and faster value to your customers with the Jira automation platform. Watch this Demo Den series below to learn how to use the new interface and set up automation rules to help your te...

1,281 views 3 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you