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!
Nobody?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The REST-API ist called without logged in user. But the function validateTransition() take the correct user (first parameter).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
See API
user
- who the permission checks will be run against (can be null, indicating an anonymous user).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.