Automation rule sometimes fails and sometimes pass. how to investigate ?

Corinne Guibert
Contributor
October 8, 2024

Hello

In a team-managed project, the automation rule sometime fails with the error message "

 

No transitions found for user. Ensure that the rule actor has permission (including issue security levels) to see issue and perform transitions."

The rule actor is the default Jira Automation  

The rule is pretty simple: when there is a transition to a state "Pending verification", I'm checking if a filed is empty or not. If it is, the rule is transitionned back to In progress

 

What is strange is that sometimes the rule pass. I'm not sure how to investigate the issue

Both issues are with the same type. The transition is the same. The trigger is the same.

 

JiraTransitionFail.png

1 answer

0 votes
John Funk
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 8, 2024

Hi Corinne,

Can you share the rule that you are using? 

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.
October 8, 2024

Hi @Corinne Guibert 

Adding to John's request to see the image of your complete rule, we cannot see the issue keys for the audit log you show.

 

What is the scope of your rule: single-project, multiple-project, or global?

And, in how many projects are the issues the rule tries to access: one, several, or all projects?

 

What problem is your rule trying to solve?  That is, why does the rule exist?

 

Kind regards,
Bill

Corinne Guibert
Contributor
October 8, 2024

Hello @Bill Sheboy , @John Funk 

 

My rule is a single-project rule, trying to access only one project.

My goal is to prevent a transition if the Fix in version field has not be filled (its's more like a work around). I'm in a team-managed project so no other way to do so.

The complete rule below: 

AutomationCheckTransistion.png

 

I added the first log element to see if this was related to who were doing the transition but it is not the case.

The step that fails is the "Transition issue to"

I'm pretty sure I'm missing something but I can't see what so any input would be appreciated

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.
October 8, 2024

What does your workflow look like for the specific issue type involved?

For the Transition Issue action in the rule, did you add a filter on the transition name?

Corinne Guibert
Contributor
October 8, 2024

I didn't add any filter (I'm not even sure to know what kind of filter you are speaking about)

Transistion.png

 

Regarding the workflow, it's a simple workflow. I didn't have any rules in it. I highlighted the transition that allow the change of the status by the Automation rule

BugWorkflow.png

 

What is strange is that sometimes, the rule is executed successfully and the transition is properly made.

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.
October 9, 2024

Thanks for confirming the rule's transition action does not filter on the specific, named one.  (That can be done with the "add regex to distinguish..." option.)

 

What happens in your named transition, "Validation failed"?  Please show that one.

 

And if this path of investigation (checking the workflow) does not help...There is an edge case where the permissions the rule uses can get out of sync with the site.  The only solution for that is to work with your Jira Site Admin to contact Atlassian Support and they can resolve this: https://support.atlassian.com/contact/#/

Corinne Guibert
Contributor
October 9, 2024

I'm not sure to understand  what you want. I'm adding the screenshot of the transition by nothing has been configured 

TransitionFailed.png

 

How do we know for sure this is a permission rule how of sync ?

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.
October 9, 2024

That was what I wanted to check; it shows no additional validation / checks on the transition.

I recommend contacting the support team to learn if there is a broken permission in the rule / project.

John Funk
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 9, 2024

So, if that same user is on the screen, can they manually transition that same issue to the desired status? If you switch to the old workflow editor, are there any Conditions or Validators on the transition? 

Corinne Guibert
Contributor
October 11, 2024

The user themselves can do the transition and  Jira Automation is suppose to be able to do it also (as the rules ran successfully a few times).

@John Funk : I don't know how to switch to the old workflow editor (I don't see any option/menu for that)

John Funk
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, 2024

Is this a Team-managed or Company-managed project? 

Corinne Guibert
Contributor
October 11, 2024

Team-managed project

John Funk
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, 2024

Well, there has to be something different about the users and their permissions to transition. Why not just change the Automation rule actor to be Automation for Jira and be done with it? Why does it need to be the initiator?

Corinne Guibert
Contributor
October 12, 2024

That's the problem: the rule actor is already Automation of Jira. That's why it makes no sense that's sometime it fails with a permission error

John Funk
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 13, 2024

So, did you check the issue to see it was already transitioned to that issue? Sometimes the user transitions the issue and then immediately moves it to the next status. 

Barring that, then it will need to be Support that investigates. 

Suggest an answer

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

Atlassian Community Events