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

Accepted Answer
1 vote

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
Community showcase
Posted Sep 18, 2018 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...

22,100 views 2 7
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