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

This widget could not be displayed.

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.

This widget could not be displayed.
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.

This widget could not be displayed.
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?

This widget could not be displayed.

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

This widget could not be displayed.

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