Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation error regarding rule actor

Collista Lewingdon
Community Champion
January 22, 2025

Recently our company switched from team managed projects to company managed projects. After transitioning to the new project styles the automation rules were copied into the new project while being sure to include the new company requirements. For some reason the automation rules refuse to work in the new project and we have been getting a few errors. One of them says that the rule actor doesn't have permission to view the event that triggered this rule. 2025-01-22 09_48_48-Audit log - Automation - CISS Scheduling -25_26 - Jira.png

Which does not make sense since the rule actor is Automation for Jira 

2025-01-22 09_53_24-Audit log - Automation - CISS Scheduling -25_26 - Jira.png

 

I have made sure that the project role (atlassian-addons-project access) has access to all permissions within the project. And it does.2025-01-22 09_56_20-Project CISS Scheduling -25_26 - Project Permissions - Jira.png

 

 

Yesterday it was only one rule that was being affected and today it is all almost all the rules. 

2025-01-22 09_55_19-Rules - Automation - CISS Scheduling -25_26 - Jira.png

1 answer

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 22, 2025

Hi @Collista Lewingdon 

The configuration of each Team-managed project (TMP) is distinct, although they might have also used some global fields shared by Company-managed projects (CMP).  And, automation rules store a bunch of id-specific information for issue types, fields, workflows, etc.

Without seeing the details of the rule(s) with this symptom...

What may have happened is when the rules were copied (or just changed in scope from the CMP to a TMP), one or more internal id values is "stuck" in the JSON.  One way to check that is pick a rule with this symptom and re-create it from scratch to test for the symptom.

Kind regards,
Bill

Collista Lewingdon
Community Champion
January 22, 2025

First of all, I made sure that all of the fields for the transition were correctly changed in the new project. No issues were transitioned. Only the rules. This particular automation rule was created from the ground up in the new project. 

Here are the details of it. 2025-01-22 14_47_45-Rule builder - Automation - CISS Scheduling -25_26 - Jira.png

 

Here is how the rule is structured. 2025-01-22 14_48_03-Rule builder - Automation - CISS Scheduling -25_26 - Jira.png2025-01-22 14_48_16-Rule builder - Automation - CISS Scheduling -25_26 - Jira.png

Yet this rule still had the error "The rule actor doesn't have permission to view the even that triggered this rule" Generally this error is associated with the project role (atlassian-addons-project access) not having access to something but as I clarified in my above post, it has access to all permissions within the project. As you can see from the first image I posted of the rule details, Automation for Jira is the actor. 2025-01-22 14_48_33-Audit log - Automation - CISS Scheduling -25_26 - Jira.png

 

Here is a more in depth view of how the rule was created2025-01-22 14_50_00-Rule builder - Automation - CISS Scheduling -25_26 - Jira.png2025-01-22 14_50_10-Rule builder - Automation - CISS Scheduling -25_26 - Jira.png2025-01-22 14_50_18-Rule builder - Automation - CISS Scheduling -25_26 - Jira.png2025-01-22 14_50_28-Rule builder - Automation - CISS Scheduling -25_26 - Jira.png2025-01-22 14_50_58-Rule builder - Automation - CISS Scheduling -25_26 - Jira.png

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 22, 2025

Thanks for those rule images.  Let's try the simplest thing which could be causing this symptom...

This rule uses the Issue Created trigger, and that has a known "racetrack error" where the trigger can fire so quickly some data may not yet be available for the rule.  This can lead to all types of weird errors and unexpected behavior (e.g., conditions do not match, permissions errors, etc.).

The fix for that is to always add the Re-fetch Issue action immediately after the Issue Created trigger.  This will slow down the rule a bit and reload the data before proceeding.  Please try adding that and re-test the rule.

Like Teri Michaels likes this

Suggest an answer

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

Atlassian Community Events