Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Integration Jira Service Management - > Opsgenie -> twitter

Tor Magne Svendsen November 19, 2020

Hi.

I wondered if this scenario is possible: 

Official governmental departments use twitter to send tweets about roadwork, accidents in traffic etc. We are a responsible for public transpont in an area, and would log incidents that might affect public transport. These logs are the basis of messages on ticket apps, statuspages and other correlation information regarding the "health" of the ongoing public transport (Bus/Tram/Boats). 

If we would like to forward tweets from a certain provider/account directly into Opsgenie as alerts where a dispatch on duty would monitor and escalate if it affects "our business" to incidents that would futher create statuses on statuspages and messages to different media, including our own twitter and e.g. facebook, would such a scenario be possible? Is there anyone who have made such an endavour or similar? 

1 answer

1 accepted

3 votes
Answer accepted
Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 20, 2020

Hi @Tor Magne Svendsen ,

Some customers have connected Twitter to Opsgenie through 3rd party apps such as IFTTT and Zapier. Both follow an IF >> THEN conditional statement format. For example; IF XYZ account tweets, THEN POST to a webhook, send an email, etc. 

IFTTT offers a few different ways to integrate with Twitter including a webhook and email option. This short video might provide more insight into how to use a webhook: https://www.youtube.com/watch?v=Q3WhvkefOR0

with the webhook endpoint being http://api.opsgenie.com/v2/alerts?apiKey=XXXXX

^ and the API key in the URL is from an API Integration.

 

They also offer the option to send the tweet through an email. The email address used for this could be from an Email Integration. Any time the Twitter account tweets >> trigger the Email Integration which then creates an alert in Opsgenie.

 

Opsgenie has a prebuilt integration with Zapier that allows you to connect your Opsgenie account with Zapier. "Zaps" can then be created which are essentially their conditional statements; when an account tweets, create an alert in Opsgenie. 

comm zapier.jpg

I'm sure there are other apps and methods that can be used, but hope this helps! Let us know if you have additional questions.

Tor Magne Svendsen January 22, 2021

Sorry about the late answer. The solution worked perfectly (IFTTT), and we were able to receive alerts into opsgenie via the webhook and a twitter account which subscribed to different traffic services (police and road services). 

However - We had to backtrack as opsgenie is currently handling major incidents - and is not as integrated to Jira Service Management as we had hoped. tweet messages - makes alerts which create normal issues. Not all tweets is an issue - and not all issues are major incidents. 

Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 22, 2021

Hi @Tor Magne Svendsen ,

Glad IFTTT helped with the workflow! 

It sounds like you need some tweets/alerts to automate the creation of an incident. This can be done through Incident Rules.

Incidents are created automatically when incident rules are matched - based on the types of alerts that should trigger this automation.

If a specific tweet creates an Opsgenie alert, Opsgenie can automate that into the creation of an incident. The rule might look something like this - based on the "health" of the ongoing public transport (Bus/Tram/Boats):

inc rule comm 1.jpg

^ If an alert contained either of those messages, then the incident rule would match and automate creating an incident.

Hope this helps! Let us know if this is not what you were looking for, if you have additional questions, etc.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events