Hello there,
I have created a bunch of JIRA automation rules but they are not working. It seems the actor responsible for executing the rules does not have project permissions to do it.
Or at least is what I understood from this information displayed by JIRA:
Hello @Vinicius Correia
Thank you for reaching out.
The actor of your automation rule (Automation app user) is added by default to the role "atlassian-addons-project-access".
That being said, I suggest checking the following steps:
Let us know if you have any questions.
Hello @Petter Gonçalves
I am experiencing a similar issue when trying set issue security level from Project Automation. I have checked and the atlassian-addons-project-access role does have the Set Issue Security and Edit Issue permissions.
Also, I am successfully setting the assignee from the same automation rule. The attempt at setting issue security level is a second action on the same rule, but that fails.
Any advice?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, I think I've solved my own problem.
The atlassian-addons-project-access role was not configured to be a member of the security level(s) that it was trying to set. Making this role a member of every security level in the scheme seems to have solved my problem.
It would seem that a user cannot set the security level of an issue to a level that excludes themselves. This may be obvious in hindsight, but it was not obvious to me. Live and learn.
@Petter Gonçalves your post pointed me to the atlassian-addons-project-access which gave me a starting point to work from. So, thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Petter Gonçalves How to solve a similar issue with Next-gen project while running my automation rules. I am getting the following error:
"Actor does not have permission to view one or more issues, or the issue was deleted (please check permissions and issue security levels)".
Actor in case is "Automation app user"
Any help is highly appreciated.
P.S.: The automation rules were running fine before we created custom roles. Not sure if that's causing the issue, but I'm not able to tie them together.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Romel,
First, it is better to create a new question for each new situation.
But for now, please check the permissions in the Permission scheme to make sure that the atlassian-addons group pretty much has all of the permissions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@John Funk , I asked the question here in the same thread as it pertained to a similar issue but with a different project type, but nonetheless I'll make sure the next time.
BTW does next-gen projects have a permission scheme?, all I Know is a user can be given access via the access menu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I forgot it was a Next-gen project - thanks for that reminder. No, those project types don't have a permission scheme. I would back out your new custom roles one by one until it works again to see what was the culprit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, @Petter Gonçalves and @John Funk
I am having the same issue as @Vinicius Correia and I have checked that atlassian-addons-project-access does have Edit Issues permission for the project, so would appreciate assistance with trying to resolve the problem, please?
(I notice that @Vinicius Correia has not replied to say whether it resolved her problem?)
The Automation Audit Log for my rule (which is one from the library, rather than one that I have created) is below:
Thank you.
Regards, Andrew Tyler
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check the issue security and give access to User "Automation for Jira"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi! I solved this problem.
permissions -> adminster projects, Browse projects -> Single user(Automation for Jira) Add
Good Luck!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi everyone,
I'm trying to create a rule that assign a particular level of security based on the issue type.
I checked that:
- the atlassian-addons-project-access role is configured to be a member of the security level I'm trying to set, as suggested by @BetterLife
- the atlassian-addons-project-access role has all the permissions in my project.
Attached is the log I get when I create the issue an the automatation runs.
Do you have any suggests? What am I missing?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you ever find a solve for this? I am running into the same issue and have done similar troubleshooting steps as you up to this point. Would love to hear how you or others moved on from here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello! I've just finished long troubleshooting of that type of issue. So what you need to check - is that you have this small lock of security level for your issue type, even if all automation is switched off:
If you don't see it, you will have "We couldn't set a new security level for this issue. Check the rule actor's permissions and try again." in Log.
How to fix:
Go to Project settings -> Fields, look for Security level field, make sure that it doesn't hidden.
Then go to Project settings -> Screens. Add security level to screen "Create/Edit issue" for your issue type.
After that, you should see the lock on the screen and automation should work properly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Seems like lots of things can cause permission type errors with automation, so adding my solve:
For me, it was failing when trying to apply a comment as the Automation for Jira user. It was saying that my commenter was not in our team group. Which makes sense because not a user.
I had to click into the Then write a comment clause in the automation rules and there was a setting there for issue security! All I had to do was revert to the default issue security level.
Here's what that section in the automation rule looks like, if you're having trouble finding it. You have to click on the Then add comment to see it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Vinicius Correia - Welcome to the Atlassian Community!
Did you find your problem with the permissions?
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.