How to close a ticket when another ticket comes in?

dweeks
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!
February 7, 2025

Good Morning,

 

we have automated alerts for VMs that come into Jira for tracking purposes. when the VM shuts down it generates an issue with the summary of 

"Azure: Activated Severity: 1 VM Availability Status - Offline"

when it comes back online it generates an issue with the summary of 

"Fired:Sev3 Azure Monitor Alert VM Availability"

 

what i would like to happen is when the issue is generated for it coming back online, it will close out both the offline and online issues.

optionally i would like it to notify me if the online one doesnt come in.

 

i have attempted following this article: 

 

Solved: Automation - Close tickets based on new and existi...

 

it is very similar to what i want to do but i was unable to get it to work. i dont understand JQL or how to adapt what they did to what i wanted to do. it appears to be an older version of jira since a few of the options mentioned didnt match what i had in my automation options. it could also be that i am inept. any assistance would be greatly appreciated.

1 answer

0 votes
Christopher Yen
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 7, 2025

Hi @dweeks ,

Welcome to the community!

I think an automation like below might work for you,

Trigger:

  • When an issue is created
  • Condition: Summary contains "Fired:Sev3 Azure Monitor Alert VM Availability"

Use "Branch rule / related issues" → "JQL"

summary ~ "Azure: Activated Severity: 1 VM Availability Status - Offline" 
AND status NOT IN (Closed, Resolved)

 You can replace "Resolved" with whichever your resolved/done status is in the workflow

Then add an action to Transition the current issue to your resolved/done/closed status

For the notification of not coming online you may be able to use a scheduled rule that runs every 30 minutes searching for this JQL and if it matches send you a notification/email


summary ~ "Azure: Activated Severity: 1 VM Availability Status - Offline"
AND status NOT IN (Closed, Resolved) AND created <= -30m

 

dweeks
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!
February 7, 2025

Awesome thanks! it looks like that works!

Like Jehan Bhathena likes this

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