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
4,294,327
Community Members
 
Community Events
165
Community Groups

Scriptrunner Permissions in Jira Cloud

I want to set a Jira workflow properties such that fields in issues of a certain status may ONLY be changed by Scriptrunner, or at the very least by no human users (including myself).

This seems straightforward, setting "jira.permission.edit.user=<scriptrunner user>" in the workflow status properties.

HOWEVER, I can't figure out what the Scriptrunner "Add-On" User's user id is.  I can't figure out what groups it belongs to.  I can't add it to a new group.  When Scriptrunner has a post-function set to "Run As" the "Scriptrunner Add-On User", what does this mean in terms of permissions possible?

Is it part of atlassian-addons-admin?  I try to view this but the browser just spins and spins.

 

 

1 answer

1 accepted

1 vote
Answer accepted

Nevermind, I figured this out.  For this, use the user group "atlassian-addons-admin".  You can see all the groups for Scriptrunner by going to the Script Console and running

 

def accountId = get("/rest/api/3/myself").asObject(Object).body.accountId
get("/rest/api/3/user/groups?accountId=${accountId}").asObject(Object).body

 

as the Scriptrunner user.

Hopefully this helps someone else!

Thanks @Bill Bill, I was beating my head against the wall there for a bit.

Our system seems to use `atlassian-addons-project-access` for this.

Like Bill Bill likes this

Suggest an answer

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

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

343 views 0 7
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