You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.