Forums

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

[JIRA Automation] Close issue on merged PR doesn't work

Alexander Turbov April 4, 2025

Hi,

 

I've added the JIRA Automation rule from templates to my project to resolve an issue on merging PR automatically. However, it finished w/ an uncertain error: "No transitions were performed by this user."

Please help to make it really work.

 

Upd:

My other rule is supposed to set the fixed version field to "unreleased". I've just closed my issue manually to see how it works, and it also failed ;-(

Edited issue successfully, however some of the set fields aren't available. Fields ignored:
Fix versions (fixVersions)

3 answers

0 votes
John Funk
Community Champion
April 4, 2025

Hi Alexander,

Can you share a screenshot of your workflow? Is there a transition available from the current status of the issue to the Resolved status? Is there a transition screen on the transition to the Resolved status? If so, that is probably preventing it from moving. That happens when you want the user to put in a Resolution when they move it to Done or Resolved. 

To get around that, I add an ALL transition to the Resolved status and put a post function on it to set the Resolution field to Done. Then I add a condition to that ALL transition so that only the project role of atlassian-addons-project-access can execute this transition.

John Funk
Community Champion
April 4, 2025

The automation user will use the same transitions and statuses. What happens when your user selects Resolve? Is there a pop up screen? If so, that is your problem. 

Alexander Turbov April 4, 2025

> What happens when your user selects Resolve? Is there a pop up screen? If so, that is your problem. 

Yes, I see this popup:

Screenshot_20250404_221913.png

Does this problem have a solution? 🤔

John Funk
Community Champion
April 4, 2025

Yep, that's the problem. See my initial answer above, except that you can set the Resolution field to Fixed instead of Done if you like. This will let the automation user move it o Resolved without executing the popup screen. 

So Edit your workflow, click on the Resolved status and then click on the box to all statuses to move to it. 

Then add the post function to set the Resolution field to Fixed. 

Finally, add a Condition to the All transition for Users in a Project Role and select the atlassian-addons-project-access option.

Publish the workflow and you are ready to test it out. 

 

Like # people like this
Alexander Turbov April 4, 2025

The workflow we have:

Screenshot_20250404_222645.png

John Funk
Community Champion
April 4, 2025

Yep - just follow what I said above. 

Like Alexander Turbov likes this
Alexander Turbov April 4, 2025

Just found that I can't edit the workflow due to a lack of permissions... :-( Gonna ask our Jira admin on Monday.

Thank you very much for your help!

John Funk
Community Champion
April 4, 2025

You are welcome. Let us know how it goes!

Like Alexander Turbov likes this
0 votes
Alexander Turbov April 4, 2025

As I told, the automation I took from the templates is pretty simple at first glance, and there is nothing much to set up...

0 votes
Mikael Sandberg
Community Champion
April 4, 2025

Hi @Alexander Turbov ,

Welcome to Atlassian Community!

If you can add screenshots of the automation and also the audit log that would help answer this question.

Without the screenshots, I would start by checking to make sure that your workflow allows you to move to the resolved status from the status the work item is in when the PR is merged. Also, if you are using another user than Automations for Jira as the actor, make sure that the user has the right permissions to transition the work item. 

Alexander Turbov April 4, 2025

As I told, the automation I took from the templates is pretty simple at first glance, and there is nothing much to setup...Screenshot_20250404_213316.pngScreenshot_20250404_215129.png

Alexander Turbov April 4, 2025

> I would start by checking to make sure that your workflow allows you to move to the resolved status from the status the work item is in when the PR is merged.

How can I check this, please? 🤔

Mikael Sandberg
Community Champion
April 4, 2025

Okay, does your workflow have the Resolved status?

Alexander Turbov April 4, 2025

Now, as I resolved it manually (to check my other automation)... yes, it is.

Mikael Sandberg
Community Champion
April 4, 2025

The easiest way to check the workflow is to go to the work item and click on the down carrot next to the status and then click on View workflow. From here you can see to which statuses the item can move to.

Screenshot 2025-04-04 at 11.02.28 AM.png

Alexander Turbov April 4, 2025

My another rule (mentioned in the updated description):

Screenshot_20250404_220526.pngScreenshot_20250404_220651.png

Alexander Turbov April 4, 2025

When an issue is in progress, I see the following:

Screenshot_20250404_221116.png

but this is my user... I dunno what user the automation uses...

nficher
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 8, 2025

Hi @Alexander Turbov ! I had the same problem and was able to solve it! I removed the conditions and added them back. It was probably a bug when using the "New Flow Editor."

Suggest an answer

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

Atlassian Community Events