You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
For our OpsGenie use case, I'm looking into how I can create Jira tickets associated with OpsGenie incidents when they are created.
I'm aware that integrations exist that work with alerts (https://community.atlassian.com/t5/Opsgenie-questions/How-to-create-automaically-an-issue-when-an-incident-is-created/qaq-p/1664670), but for our use case it doesn't make sense to have jira tickes for those as alerts come from many sources and can sometimes be too noisy. Incidents, on the other hand, must be added to our Jira for tracability.
I understand that in the worst case, it should be possible to DIY some kind of script that periodically syncs incidents to Jira, though that would obviously be my least preferred option. Are there any way we can use an existing integration in this case? Is there some other setup that would work for our use case?
Hi @Hendrik Moens,
This is Darryl. I am here to help. 😃
Understand that you would like to know if there is any way to automatically link Opsgenie Incidents with Jira tickets.
Unfortunately, this is not feasible directly and as you mentioned, you can craft your own script to accomplish that.
However, the reason behind this logic is that Opsgenie Incident itself doesn't trigger any notifications, instead, it leverages the creation of Responder Alerts to trigger the notifications to the Users/Teams that are listed as Responders.
In the best practice, we recommend only filling in the wanted teams as Responder Teams upon the Opsgenie Incident creation, and configure the Filter of your Jira integration to match only the Responder Alerts to be pushed to create Jira issues.
In this way, there will be only the Responder Alerts pushed to your Jira Tickets and they carry the information of the Opsgenie Incident.
Every responder alerts have the key-value pair in the Extra Properties to represent the relationship with an Opsgenie Incident:
We can leverage this.
Adjust the "Alert Filter" to be like this to locate the Responder Alerts.:
"Match all conditions below"
"Details (Key-Value Based)" | "incident-alert-type" | "Contains" | "Responder"
Last, here I attach a short-paragraph document regarding the Incident Responder for your reference.
Hope this helps. 😃
Support Engineer, Atlassian
I suppose that approach might work, though linking directly to the incident would still fit our use case better (it's basically the incident comments and timeline that we'd like in the Jira issue).
Looking at the 'Add issue creation rule' in the opsgenie integration, I'm not seeing the option to match based on key-values (the closest I can get is 'Details Contains Responder). How can I match on Key-Value?
For completeness, you mention that "you can craft your own script to accomplish that". Are there any tools with Jira / Opsgenie we could leverage for this, or would this just be a standalone script that we trigger outside of atlassian that uses the OpsGenie / Jira API?
Hi @Hendrik Moens ,
I just tested this.
This new framework's filter matches the string in the Extra properties (Details) regardless its Key or Value.
So, my suggestion is to make it match the string "Responder" like this:
Hope this helps.
Support Engineer, Atlassian