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!
user - who the permission checks will be run against (can be null, indicating an anonymous user).
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