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

This widget could not be displayed.

>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.

 

This widget could not be displayed.

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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

55 views 1 0
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