Get started with Jira Service Management for admins
Your first stop for learning how to get started with Jira Service Management.
This article highlights a new alerting feature that's natively available in Jira Service Management which is gradually rolling out to some Jira Service Management Cloud customers. It may not yet be visible or available on your site.
Use the Azure OMS Integration to forward Azure OMS alerts to Jira Service Management. Jira Service Management determines the right people to notify based on on-call schedules- using email, text messages (SMS), phone calls, iOS & Android push notifications, and escalates alerts until they are acknowledged or closed.
When an alert is created in Azure OMS, an alert is automatically created in Jira Service Management.
Azure OMS is an API-based integration. Setting it up involves the following steps:
Add an Azure OMS integration in Jira Service Management
Configure the integration in Azure OMS
Bidirectional integrations aren’t supported in Free and Standard plans. All the other integrations are supported at a team level in Free and Standard; however, for their outgoing part to work, you need to upgrade to a higher plan. To add any integration at a site level through Settings (gear icon) > Products (under JIRA SETTINGS) > OPERATIONS, you need to be either on Premium or Enterprise.
Adding an integration from your team’s operations page makes your team the owner of the integration. This means Jira Service Management only assigns the alerts received through this integration to your team.
To add an Azure OMS integration in Jira Service Management, complete the following steps:
Go to your team’s operations page.
On the left navigation panel, select Integrations and then Add integration.
Run a search and select “Azure OMS”.
On the next screen, enter a name for the integration.
Optional: Select a team in Assignee team if you want a specific team to receive alerts from the integration.
Select Continue.
The integration is saved at this point.
Expand the Steps to configure the integration section and copy the Webhook URL.
You will use this URL while configuring the integration in Azure OMS later.
Select Turn on integration.
The rules you create for the integration will work only if you turn on the integration.
To configure the integration in Azure OMS, complete the following steps:
On the Azure Portal, select Logic Apps.
Create a logic app.
Select Consumption for the plan type.
Open the logic app and select Azure Monitor - Metrics Alert Handler for the template.
Select Add a new step and select HTTP REST request.
Select POST for the method.
Paste the webhook URL previously copied from Jira Service Management into URI.
Copy-paste the following into the body:
1
2
3
4
5
6
7
8
9
10
11
12
{
"alertRuleName": "§§@{triggerBody()['data']['essentials']['alertRule']}§§",
"alertThresholdOperator": "§§@{triggerBody().data.alertContext.condition.allOf[0].operator}§§",
"alertThresholdValue": "§§@{triggerBody().data.alertContext.condition.allOf[0].threshold}§§",
"linkToSearchResults": "§§@{triggerBody().data.alertContext.condition.allOf[0].linkToSearchResultsUI}§§",
"resultCount": "§§@{triggerBody().data.alertContext.condition.allOf[0].metricValue}§§",
"searchIntervalEndtimeUtc": "§§@{triggerBody()['data']['alertContext']['condition']['windowEndTime']}§§",
"searchIntervalInSeconds": "§§@{dateDifference(triggerBody()['data']['alertContext']['condition']['windowStartTime'], triggerBody()['data']['alertContext']['condition']['windowEndTime'])}§§",
"searchIntervalStartTimeUtc": "§§@{triggerBody()['data']['alertContext']['condition']['windowStartTime']}§§",
"searchQuery": "§§@{triggerBody().data.alertContext.condition.allOf[0].searchQuery}§§",
"workspaceID": "§§@{triggerBody().data.alertContext.condition.allOf[0].operator}§§"
}
Select Save.
Go to Analytics workspace.
Create a query and select New Alert rule.
Add conditions against which you want to create alerts.
Go to the Actions tab.
Select Create Action Group and add actions.
While adding actions, select Logic app for the action type and select the logic app you created earlier.
Select Save.
Create alert payload (in JSON format)
1
2
3
4
5
6
7
8
9
10
11
12
{
"alertRuleName":"§§#alertrulename§§",
"alertThresholdOperator":"§§#thresholdoperator§§",
"alertThresholdValue":"§§#thresholdvalue§§",
"linkToSearchResults":"§§#linktosearchresults§§",
"resultCount":"§§#searchresultcount§§",
"searchIntervalEndtimeUtc":"§§#searchintervalendtimeutc§§",
"searchIntervalInSeconds":"§§#searchinterval§§",
"searchIntervalStartTimeUtc":"§§#searchintervalstarttimeutc§§",
"searchQuery":"§§#searchquery§§",
"workspaceID":"§§#workspaceid§§"
}
Was this helpful?