Automation rule is failing with "Actor does not have permission to view one or more issues, or the issue was deleted "
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Summary
Jira Automation rule fails with the below error when the rule tries to add a new comment.
Actor does not have permission to view one or more issues, or the issue was deleted (please check permissions and issue security levels): Comment
Change to use the Automation for Jira rule actor
Jira's built-in Automation for Jira actor has elevated permissions that will allow us to avoid the error.
Steps to change the actor for an existing automation rule:
Navigate to the automation list.
For project automations, go to Project settings > Automation. In a team-managed project, go to Project settings > Automation.
For global automations, go to Jira home > Settings > System > Automation rules
Select the rule you want to edit the configuration.
- Select the rule details.
Under Actor, search for the user "Automation for Jira."
Common causes of the "does not have permission" error
The error typically occurs under the following conditions:
- The project has an Issue Security scheme configured, but the permissions for the Automation are not set correctly.
- The project's permissions are misconfigured, preventing the Automation app from accessing the project.
- The rule's actor is designated as "User who triggered the Event," but that user lacks the necessary permissions.
In this case, the rule's actor did not have the required permissions, leading to the error message. This is because the rule actor was originally set to "user who triggers the event." Therefore, when a customer comments, the automation attempts to perform a transition based on the event trigger. However, since the customer did not had to permission to execute the transition, this is the source of the issue.