Groovy Script to restrict issue view

Dear all

i have one project with a multiselect custom field and according to the selection on that field i need only a group can view issues, is it possible with script-runner?

Im not a java programmer, would you pls help me or at least give me a hint to solve this.

thx so much for your help and support

6 answers

1 accepted

1 vote

Or define 4 security levels, and use a post-function to set the correct security level. You could either modify this built-in script, or use it 4 times, one for each group of countries.

1 vote
Henning Tietgens Community Champion Feb 20, 2014

You could implement a listener which reacts on changes of your multiselect custom field and write the corresponding user groups to another multi user group custom field which you use in a security level which must be set for theses issues.

0 vote
Henning Tietgens Community Champion Feb 20, 2014

Is it a multiselect text field? What is the logic on how you want to decide who should be able to view the issue, in other words how to you get from your multiselect field to the groups which have browse project permission?

HI Henning, thx for your time

we manage issues for 16 countries on southamerica, my multiselect text field have the 16 countries. i have only 4 IT Managers (1 per group of countries) andhave to give visibilty only to their own developments, so they can see only the developments to their own countries and not the whole project; and i have to see them all. is it possible?

again, thx for your time

HI Henning, thx for your time

we manage issues for 16 countries on southamerica, my multiselect text field have the 16 countries. i have only 4 IT Managers (1 per group of countries) andhave to give visibilty only to their own developments, so they can see only the developments to their own countries and not the whole project; and i have to see them all. is it possible?

again, thx for your time

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

175 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