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!