Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

I want to set permission rule while creating structure using scriptrunner

Hello Team,

image.pngI want to these two permission rules while creating structure using scriptrunner.

2 answers

Hi Jaspreet, Alessandro from ALM Works here.

Could you please create a ticket at support.almworks for this?

Using Scriptrunner goes beyond using Structure default features so we would like to better understand what you are trying to accomplish with a customized solution.

Best regards,
Alessandro C.
ALM Works

Hi Jaspreet,

I've added a snippet below (omitted the imports for brevity) that shows you the code to add permissions. You will need to look up the PPT Admins group id on your Jira instance to reference.

def structure = structureManager.createStructure().setName("example struture").saveChanges() // you can also get a pre-existing structure
def permissions = []
permissions.addAll(structure.getPermissions()) // this makes sure you don't delete any previous permissions


If you'd like to add those permissions, the easiest way would be to reference those structures and print their getPermissions() method results in the script console, you could also use that method described above to copy the permissions from one structure to another.

Hope this helps. If you have any further questions about Structure and scripting, feel free to reach out to our solutions team at or our fantastic support crew at

@Philip Heijkoop _ALM Works_ 

Thanks for your help. it worked

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

New Cloud Apps Roundup - April 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

278 views 3 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you