Forums

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

Automation For JIRA "transition" to target Status "A" fails - Error Log shows failure to "B"

Greg Abbenante March 12, 2025

Testing a migrated "Premises" JIRA instance to JIRA Cloud. I am using "Automation For JIRA" to transition a workflow from the Status its in (Pending MTP Approval Business)  to the rules Destination set Status (Pending MIS Management Approval). The rule runs and passes all of the rules logic until it hits the last part to "Transition Issue". When I inspect the failed portion of the rule it says "Unable to transition your issue to the selected status: 

 

Pending MTP Approval Business, which is the status it is in. The rule validates fine but fails and shows that its failing something that's not even set up in the rule to begin with. Please help. I have already tested permissions/actors etc. Is there a know bug regarding transitions at this time?image.png image.png

2 answers

1 accepted

4 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 12, 2025

Hello @Greg Abbenante 

Welcome to the Atlassian community.

Do you have more than one transition path between the starting and destination statuses? If not then clear the information in the Transition match field in the Transition Issue action. Use of that field is only needed when there is more than one transition path available between the statuses.

Greg Abbenante March 12, 2025

btw - thank you for such a rapid response =)

Greg Abbenante March 12, 2025

apologies for creating an answer to my own question...

Greg Abbenante March 12, 2025

I have 3 possible Statuses - the one I am attempting plus "In Process" (when Rejected) and "Cancelled" (When Cancelled). Only Approve and Reject utilize Automation for JIRA.image.png

Greg Abbenante March 12, 2025

I did try with and without the "Approve" Transition match - fails both ways. Also these rules execute as expected in our Premises Server - its our new Cloud version (migrated) that is failing

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 12, 2025

When you remove the "Approve" Transition match do you get the same failure?

Are there any conditions or validators associated with the "Approve" Transition?

Is there a Transition Screen associated with the "Approve" Transition?

Who is the Actor for the rule? Does that actor have the permission for transitioning issues for the target project?

What is the project scope for the rule? Is it single project, multiple project, or global?

 

In Cloud did you create the rules from scratch or did you create them by importing an XML created by exporting the rules from your on-premise instance?

Greg Abbenante March 12, 2025

Q: When you remove the "Approve" Transition match do you get the same failure?

A: Same identical error (again which the error statement is incorrectly stating the wrong destination status)

 

Q: Are there any conditions or validators associated with the "Approve" Transition?

A: Yes (Current user must match contents of the field Business Approver.)

 

Q: Is there a Transition Screen associated with the "Approve" Transition?

A: Yes, but there are no fields associated to that screen and that’s the way its setup in our on-premises server instance. Also note that this transition can be manually transitioned by the Business Approver. What triggers this transition is an email from the Business Approver that contains the specific text the rule looks for (and passes)

 

Q: Who is the Actor for the rule? Does that actor have the permission for transitioning issues for the target project?

A: The Actor is a system user that has the appropriate access to transition (tested in the Projects Permissions test area) (I have also tested myself as the Actor and I am a full Admin associated to all the groups that gives transition permissions via Transition Conditions etc)

 

Q: What is the project scope for the rule? Is it single project, multiple project, or global?

A: Single Project

 

Q: In Cloud did you create the rules from scratch or did you create them by importing an XML created by exporting the rules from your on-premise instance?

A: I believe they were transferred by a plugin tool by then team on our side that migrated the Project. But I recreated the one I am working with from scratch and disabled the imported/transferred one for now

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 12, 2025

Thank you for that additional information.

Q: Are there any conditions or validators associated with the "Approve" Transition?

A: Yes (Current user must match contents of the field Business Approver.)

Q: Who is the Actor for the rule? Does that actor have the permission for transitioning issues for the target project?

A: The Actor is a system user that has the appropriate access to transition (tested in the Projects Permissions test area) (I have also tested myself as the Actor and I am a full Admin associated to all the groups that gives transition permissions via Transition Conditions etc)

If the transition has a Condition that the user must match the contents of the field Business Approver, then the Actor of the rule must be a user that matches the contents of the field Business Approver for the issue that triggered the rule. 

Testing the permissions of the Actor to transition issues (in the Projects Permission test area) does not take into account any Conditions on the workflow transition that impact who can execute the transition.

 

Your rule is triggered by comments, and checks that the rule Initiator is equal to the Business Approver field. I believe the rule will work if you change the Actor of the rule to User who triggered the event.

Screenshot 2025-03-12 at 3.38.31 PM.png

Like • Greg Abbenante likes this
Greg Abbenante March 12, 2025

Wow - will try that asap - Thank you =)

Like • Trudy Claspill likes this
Greg Abbenante March 12, 2025

Trudy - YOU ROCK!!! That worked =)   Thank you so much for such quick and potent responses. I will now continue with a full end to end test for my workflows, much appreciated ;)image.png

Like • Trudy Claspill likes this
0 votes
Greg Abbenante March 12, 2025

I have 3 possible Statuses - the one I am attempting plus "In Process" (when Rejected) and "Cancelled" (When Cancelled). Only Approve and Reject utilize Automation for JIRA.image.png

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