Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to use ScriptRunner to change project permission ?


Hello, :)

I want to change the access level for members of that project when the field status of a project is changed, I have done the actions related to the project permission, but I don't know how to write the script to run it after the field status is changed.

Thank you for your guidance.

1 answer

1 vote

Hi Maahshid

You can't use project permissions on a per-issue basis. If you adjust anything in project permissions based on the status of an issue, you're also changing the permissions on ALL other issues.

I suggest you look into workflow properties instead.

Hi Peter 

Thanks for your answer, Actually I want adjust project permission based on the status of project not issue, for exp if the status of the project change to "Closed" all issues related to this project have to be closed and no new issue be created on it.

There is no such thing as project status.

But what you are describing can be achieved by changing the permission scheme associated with a project.

PermissionSchemeManager is probably a good place to start

It is cotumefield I attached Screenshot, 


I am not familiar with the app that provides this project-level custom field.

I think it's not important or key point of my work, because automation rule find this costume field and run script, so now my question  :

in script how can I return project key and then read costume field?

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events