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

ScriptRunner REST-Endpoint Workflow Transition permission missiong

I created a script that change an issue from one to another status. It works perfekt when I run it over the script runner console. But the same as scriptrunner rest endpoint raise the error:

Fehler beim Wechseln des Status. Issue YY-12344.  TransitionId: 71. Fehler: Sie sind nicht berechtigt, Vorgänge zuzuweisen.

(Translated: Status change failed. Issue YY-12344. TransitionId: 71.  Error: You are not authorized to assign tasks.)

I use the following script and the user I give to the method XXXX() is always the same.


ApplicationUser user = A_DEFINED_USER;
IssueService.TransitionValidationResult validationResult = issueService.validateTransition(user, issue.getId(), actionDescriptor.getId(), issueInputParameters)


What do I wrong?

Thanks for helping!

2 answers

0 votes
brbojorque Community Leader Dec 18, 2019

Hi @Steffen Stamprath ,

Make sure that the user has enough permission to be able to perform the action.

Try it manually and eventually in the API try your user credentials.

The REST-API ist called without logged in user. But the function validateTransition() take the correct user (first parameter).

Suggest an answer

Log in or Sign up to answer

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