Limit Ability To Transition Workflow Based on Current Assignee and Group

I would like to lilmit who can transition an issue's workflow.

Is it possible to allow only the current assignee to transition the workflow and anyone in a paricular group? So both criteria could change it.

I want all users to be able to view all issues.

I've looked into Issue Security but its not clear if you can limit the transition ability. Possibly a transition validator?

Thanks.

4 answers

This widget could not be displayed.

If you want to restrict the movment of an issue, you'll need to set a property on the step in the workflow. Go to the workflow step and click View step's properties. Then set a property, something like jira.permissions.move.user= user_name , jira.permissions.move.group = group_name , or jira.permission.assign.assignee to "granted".

This link http://www.j-tricks.com/1/post/2011/02/permissions-based-on-workflow-status.html is still a good source for more on this. You might also check https://confluence.atlassian.com/display/JIRA/Workflow+properties

This widget could not be displayed.

Actually, workflow properties are overkill and over-complex for this.

If you look at a transtion, you'll see you can add "conditions". These allow or deny people to perform transitions based on all sorts of rules.

The really easy one is "only allow current assignee". "Only allow if user is part of a group" is another. You can glue them together with AND and/or OR statements too. You can do roles, reporter, project lead, assorted permissions, field contents etc etc etc. And write your own!

In fact, you should ALWAYS place at least one condition on every transition, even if it's just "person must be a member of jira-users", otherwise anonymous users can do stuff.

This widget could not be displayed.

Is there a way to have a 'blanket condition' for an entire project workflow? I don't want to have to add a condition to every single transition in my workflow, that is very prone to input-error.

This widget could not be displayed.

"Only allow current assignee" is not an easy to use option.

It fails when you add the Assignee field to a transition screen: If the assignee sets a new assignee before confirming the transition, the transition with a permissions error.
https://jira.atlassian.com/browse/JRA-60940 

Yes, that's why you don't put it on the screen.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

72 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