Forums

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

Cannot get the jira automation to transition issue

Bharat Kumar Shukla September 29, 2022

I am running a jira automation that will look to close incidents based on certain parameters( last update, last comment etc). Now the test issue gets listed in the associated items but does not get transitioned to Resolved status, am I missing something here?

1 answer

0 votes
John Funk
Community Champion
September 29, 2022

Hi Bharat - Welcome to the Atlassian Community!

Is there an error? What does the audit log say in Automation when you run it? 

Do you have Conditions on the transition? 

Bharat Kumar Shukla September 29, 2022

Hi John! 

No the audit log does not show any error. The automation is basically like this:

  • Trigger- scheduled, searches for all certain tickets in the queue
  • Advance condition to compare : 
    • {{issue.comments.last.body}} contains xyz
    • {{now.diff(issue.updated).minutes.abs}} greater than 5 
    • {{issue.status}} is in progress
  • Transition to resolve if all the above conditions are met

Now my test issue has a comment where xyz is present but still it shows that my issue fails for the conditions and sometimes it shows my issue in "Associated items-> scheduled", I am not able to find what does that mean either.

John Funk
Community Champion
September 29, 2022

If it is failing on the condition each time, you need to resolve that first. Are you sure the issue has xyz in the last comment made?

Bharat Kumar Shukla September 29, 2022

Title: lorem ipsum
Body: lorem ipsum

URL: lorem ipsum

xyz
Message type: lorem ipsum

----------------------------------------------------

The last comment is something like the above text.

I changed the order of the if conditions and its just failing for this particular condition where I check if xyz exist in the comment or not. Do I need to use regular expression for it?

John Funk
Community Champion
October 4, 2022

Can you post screenshots of your rule and the audit log where it fails?

Suggest an answer

Log in or Sign up to answer