Automation Actor "Automation for Jira"

Bernd Anderer
Contributor
October 11, 2023

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

3 answers

1 accepted

2 votes
Answer accepted
Valerie Knapp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 11, 2023

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 -

image.png

Hope this helps. 

Cheers

Bernd Anderer
Contributor
October 12, 2023

Hi @Valerie Knapp 

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?

Bildschirmfoto 2023-10-12 um 10.21.01.png

Valerie Knapp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 12, 2023

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?

Bernd Anderer
Contributor
October 12, 2023

It's a Powerscripts Script. 

Valerie Knapp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 12, 2023

Hi  @Bernd Anderer , is the Powerscripts post function the last one in the list?

Writing Conditions Validators and Post Functions - Power Scripts for Jira Cloud - Appfire (atlassian.net)

You can also open a ticket directly with the vendor of Powerscripts to ask for help. 

Power Scripts - Jira Workflow Automation | Atlassian Marketplace

Bernd Anderer
Contributor
October 12, 2023

Hi @Valerie Knapp 

it is the last one - I made that mistake before ;-)

I guess I'll open a ticket then.

Thank you for your support! 

Like Valerie Knapp likes this
Valerie Knapp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 12, 2023

You're welcome. I hope they can help you get it working. Good luck! :)

0 votes
Janet Juo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 5, 2024

Hi @Bernd Anderer 

I have the same problem with Automation, did you resolve this problem? 

Thanks

0 votes
S Naveen Kumar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 11, 2023

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.

Jira Configuration - Jira 2023-10-12 at 9.13.49 AM

Thanks

Bernd Anderer
Contributor
October 12, 2023

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 ;-) 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events