Is there a way to enforce a transition validator?

I have a status called In Progress and transition to the status called Step 1. My intention was to force a assignee field validator. When I look at an issue it shows both the status and transition, which would easily allow someone to completely skip the validator. Is there a way to transition to a status and always enforce the validator?

 

Example Issue:

Screen Shot 2016-03-15 at 11.47.50 AM.png


Workflow:

Screen Shot 2016-03-15 at 11.49.44 AM.png

2 answers

1 accepted

I think the reason you can get to "In Progress" from "Unassigned", bypassing "Step 1", is because you have "All->In Progress".

1 vote

I think you've misunderstood what you have set up here.

JIRA is not showing you a transition and a step, it is showing you two transitions.  One is called "in progress" and the other you have named "step 1".  The "in progress" one is a "global" transition that lets you transition into that status from anywhere in the workflow, and it's labelled simply with "all" in the diagram.

I don't know if you intended to have two transitions (it can be useful), but if you want to force a mandatory field, you will need to add it to both transitions.

The other option is to delete an unnecessary transition.  Do you need "step 1"?  As you already have "all"?

Thanks for the help. I suppose I was not clearly understanding what was actually going on. In any case, removing the "all" label as @Jeremy Gaudet mentioned solved the problem. I originally has it labelled as "all" because I wanted things from my "finished" status to be able to go back to "in progress". I now realize can just add that workflow in manually though.

It's not a label, it's a global transition from all status into that status.  Removing the second transition is probably the right thing to do.  And if you need the finished -> in-progress, you could add an explicit single one that only does that, rather than "all"

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

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