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

0 vote

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...

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.

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
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 Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

176 views 0 4
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