How to set the issue permisions according to reporter group?

I need to make every new issue available to the reporter's group (or groups) members only.

I.e. I want Jira to do following actions on new issue creation event:

1) determine the list of users groups which the reporter belongs to;

2) grant the issue read&write rights to the members of groups in the list and deny access to the issue to all others.

How can I do so?

Thanks a lot.

3 answers

This widget could not be displayed.

I've not got any code for you, but I do have a warning - you'll need to exclude some groups from this routine. The default setup for example, has a setting that "you can only log in if you belong to the jira users group". So unless you drop that group out in your code, you will find that everyone can see everything...

This widget could not be displayed.

Thanks, buddy, for advice.

I've found some useful code here: https://answers.atlassian.com/questions/173832/issue-security-based-on-group-level

But I need this process to be dynamic, i.e. something like that (abstract syntax):

AllowedGroupList = <List of groups issue.getReporterId() is in>
<Set issue access list to NONE - remove all permissions>
i = 1
while  (i <= AllowedGroupList.Count) {
       <Add group AllowedGroupList.Item(i) to issue access list>;
       i++;
}

Could somebody please convert the "code" above into working skript?

Thanks in advance.

This widget could not be displayed.

Thanks, buddy, for advice.

I've found some useful code here: https://answers.atlassian.com/questions/173832/issue-security-based-on-group-level

But I need this process to be dynamic, i.e. something like that (abstract syntax):

AllowedGroupList = [List of groups issue.getReporterId() is in]
[Set issue access list to NONE - remove all permissions]
i = 1
while  (i <= AllowedGroupList.Count) {
       [Add group AllowedGroupList.Item(i) to issue access list];
       i++;
}

Could somebody please convert the "code" above into working skript?

Thanks in advance.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

509 views 3 18
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