Workflow transition execution for people NOT in a group.

Tarun Sapra Community Champion May 14, 2013

Hello,

In workflow conditions we have the ability to restrict the execution of a transition by users in a specific group, I want the exact opposite of this, i.e. people who are part of suppose GROUP A should not be able to execute the transition.

Please share your opinion.

4 answers

1 accepted

Hi Tarun,

This plugin does exactly what you are looking for. Use version 1.0.1 of the plugin.

Refer the documentation here

https://bitbucket.org/bhushan154/not-reporter-workflow-plugin/wiki/Home

If you have any issues raise them at

https://bitbucket.org/bhushan154/not-reporter-workflow-plugin/issues?status=new&status=open

You can download the plugin here

https://bitbucket.org/bhushan154/not-reporter-workflow-plugin/downloads

Tarun Sapra Community Champion May 15, 2013

Hi Bhushan,

It seems very useful, can you tell whether is compatible with JIRA 4.4.4 or not?

Cheers,

It should be. You can try it out and let me know if you face any issues.

Hi,

Add an other group B or create role contain users who are ableto execute transition.

Short answer: ScriptRunner, JJupin.

In JJupin condition for this is simply written as:

return !(userInGroup("GroupA", currentUser()));

For complex operations, you have the possibility to create reunions of sets and intersections of sets:

http://confluence.kepler-rominfo.com/display/SIL/arrayUnion

http://confluence.kepler-rominfo.com/display/SIL/arrayIntersect

Tarun Sapra Community Champion May 14, 2013

how to do it with ScriptRUnner?

Search answers etc for UserUtil. It's something like:

import com.atlassian.jira.component.ComponentAccessor
! ComponentAccessor.getUserUtil().getGroupNamesForUser(currentUser.name).contains("Group A")

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
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

158 views 5 9
Read article

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