Forums

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

JIRA automation rule not closing the issue

Rakshith Shetty January 12, 2024

Hey All, We have workflow to close the issue after 3 days if no updates. Before that we have the schedule node check for every 10mins and comment on the issue kind of reminder .

reminder JQL 
project = XXX and status = "Waiting for customer" and ( (updated <-1d AND updated > startofWeek() ) OR updated < -3d) and issuetype = Operational

and 

closing check JQL is like: 
project =xxx and status = "Waiting for customer" and ( (updated <-3d AND updated > startofWeek() ) OR updated < -5d) and issuetype = Operational

Issue is even though the first time automation has sent reminder but second time it supposed to be closed but not instead it is sending second reminder. 

can any add some inputs please?

1 answer

1 accepted

2 votes
Answer accepted
Fazila Ashraf
Community Champion
January 12, 2024

Hi @Rakshith Shetty 

Welcome to community!

The reminder comment is also an update to the ticket to the close jql will not get matched 

For the reminder automation, add a label to issues like "reminderSent" and update it's jql to "and label != 'reminderSent'

Rakshith Shetty January 12, 2024

Thank you Fazila , is there a chance of to filter reporter != System ? I tried doing it but result still shows the system reported issues. 

Fazila Ashraf
Community Champion
January 12, 2024

Could you explain what you mean by system reported issues? What is the value in the reporter field of those issues?

Rakshith Shetty January 12, 2024

When I say system reported issues these are the "Opsgenie alerts" created JIRA tickets. I am trying to filter out these and have only actual reported cases to address then on my automation (cause asking followup with the system doesn't make any sense) .

reporter field has value of 'System'

Fazila Ashraf
Community Champion
January 16, 2024

Could you check the user profile of this 'System' account and use the id instead of display name in the query?

Can you query the issues created by this account outside automation? i.e., from issue navigator? 

Suggest an answer

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

Atlassian Community Events