Workflow transition execution for people NOT in a group.

Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

1 vote
Answer accepted
Bhushan Nagaraj
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 14, 2013

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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 15, 2013

Hi Bhushan,

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

Cheers,

Bhushan Nagaraj
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 15, 2013

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

0 votes
Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 14, 2013

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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 14, 2013

how to do it with ScriptRUnner?

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 15, 2013

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

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

0 votes
Nadir MEZIANI
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 14, 2013

Hi,

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

0 votes
Nadir MEZIANI
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 14, 2013

Hi,

Suggest an answer

Log in or Sign up to answer