I am triggering an Automation that transitions an Issue. Automation Actor is "Automation for Jira". In the post function of the Workflow, there is a script that updates the issue.
As the transition is triggered by the Automation, the post function runs in the context of "Automation for Jira".
The postfunction fails, as "Automation for Jira" does not have the permissions to edit the issue.
Question is: how can I fix that?
"Automation for Jira" is not a user that I can add to the project. Is there something in the permission scheme that I need to change?
Thanks in advance,
Bernd
Hi @Bernd Anderer , thanks for your question.
Yes, you are correct. You should be able to grant the permission to edit the issues in the project permission scheme. Typically by default, there is a project role for atlassian-addons-project-access, which you can then just enble in the permission scheme the permissions you want to give that role, like this -
Hope this helps.
Cheers
thank you for your answer. The problem is ... I already did that.
The permission is set to Browser, Edit, Transition and some more.
When I use my user account instead, it works.
Could it be that the Plugin has a problem with the "Automation for Jira" Actor?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bernd Anderer , thanks for your reply. Is the post function one of the standard ones or are you also using an app for this, like ScriptRunner?
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.
Hi @Bernd Anderer , is the Powerscripts post function the last one in the list?
You can also open a ticket directly with the vendor of Powerscripts to ask for help.
Power Scripts - Jira Workflow Automation | Atlassian Marketplace
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it is the last one - I made that mistake before ;-)
I guess I'll open a ticket then.
Thank you for your support!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're welcome. I hope they can help you get it working. Good luck! :)
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.
Hi @Bernd Anderer ,
Thank you for reaching out to the Atlassian community!
You may change the rule Actor for the Automation rule and select the user who has access to perform the action and give it a try.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @S Naveen Kumar ,
I tried this, and it worked. But I want to avoid named users for Workflow related functions. Once that user is not around anymore you need to cleanup your projects - I try to avoid that ;-)
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.