How can I limit a transition to issues in the backlog (not assigned to a sprint)?

I have a Step in my workflow called "Shelved" with an associated transition. My team uses this to get rid of issues that we did not complete during a sprint and that we no longer intend to complete.  (I don't allow the users to delete the issues, as we may want to look at them later for history).  The transition also sets the resolution to "Won't Fix".  This is an action that users would take after a Sprint is closed, before (or during) planning of the next Sprint.

I would like to put a condition (or verification?) on this transition so that only issues that are not assigned to an active sprint can be Shelved.  I tried to do this by putting a Condition with the JQL statement "Sprint not in openSprints()" but when I did that I couldn't see the Workflow action at all either as a button (I had configured it to be the second button with "opsbar_sequence") or in the Workflow dropdown or "More Actions" menu.  

Is there a way to do this?

2 answers

0 vote

>I tried to do this by putting a Condition with the JQL statement "Sprint not in openSprints()"

That sounds like the right approach, but can you explain what you have done to enable this?  JQL conditions are not implemented in JIRA, so I'm not quite sure how you're approaching it.

 

One of the options when adding a condition is "condition based on JQL query"  I set it up like so:

image2015-5-4 10:51:30.png

And it looks like this in the Transition screen:

image2015-5-4 10:52:33.png

And now that I am trying to recreate the issue for you, it is working exactly as intended.  sigh

So, obviously I did something different the first time.  Perhaps I simply had a typo?  I'll just post these screenshots here in case anyone else stumbles upon this issue in the future,

Thanks for causing me to re-examine.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,315 views 14 20
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot