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.
With the ThousandEyes platform, you can configure highly customizable alert rules and assign them to tests and highlight or be notified of events of interest. With the ThousandEyes Integration, Jira Service Management acts as a dispatcher for these alerts and determines the right people to notify based on on-call schedules– notifies via email, text messages (SMS), phone calls, and iPhone & Android push notifications, and escalates alerts until they are acknowledged or closed.
An alert notification is triggered when test results assigned to an alert meet the conditions, an alert is also created in Jira Service Management automatically through the integration. When the alert is cleared in ThousandEyes, the alert is also closed in Jira Service Management.
ThousandEyes is an API-based integration. Setting it up involves the following steps:
Add a ThousandEyes integration in Jira Service Management
Configure the integration in ThousandEyes
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 a ThousandEyes 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 “ThousandEyes”.
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 API URL.
You will use this URL while configuring the integration in ThousandEyes 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 ThousandEyes, complete the following steps:
In ThousandEyes, select Alerts > Alert Rules from the side menu.
In the Cloud and Enterprise Agents tab, select Add New Alert Rule to create an alert rule.
Go to the Notifications tab.
In the Webhooks section, select Edit Webhooks.
Select Add New Webhook.
Paste the API URL previously copied from Jira Service Management into URL.
Select Save Webhook to save the webhook.
Select the webhook you added from the Select Webhooks drop-down.
Select Create New Alert Rule to save the rule.
Create alert payload (in JSON format)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
"eventType":"ALERT_NOTIFICATION_TRIGGER",
"eventId":"8416215-4867000",
"alert":{
"agents":[
{
"active":1,
"metricsAtStart":"Error Type: \"Connect\"",
"metricsAtEnd":"",
"agentId":4522,
"agentName":"Amsterdam, Netherlands (Trial)",
"dateStart":"2016-06-07 08:48:08",
"permalink":"https://app.thousandeyes.com/web/http-server?__a=50664&testId=106681&roundId=1465289288&agentId=4522"
},
{
"dateStart": "2014-03-24 19:01:48",
"active": 1,
"metricsAtStart": "Error type: \"DNS\"",
"metricsAtEnd": "Error type: \"DNS\"",
"agentId": 108,
"agentName": "Boston, MA",
"permalink": "https://app.thousandeyes.com/web/http-server?__a=11&testId=5176&roundId=1395699129&agentId=108"
}
],
"alertId":4867000,
"dateStart":"2016-06-07 08:48:08",
"apiLinks":[
{
"rel":"related",
"href":"https://api.thousandeyes.com/tests/106681"
},
{
"rel":"data",
"href":"https://api.thousandeyes.com/web/http-server/106681"
}
],
"permalink":"https://app.thousandeyes.com/web/http-server?__a=50664&testId=106681&roundId=1465289288",
"ruleExpression":"Error Type is any",
"ruleName":"Default HTTP Alert Rule",
"ruleId": 414881,
"testId":106681,
"testName":"test1",
"violationCount":1,
"type":"HTTP Server"
}
}
Jira Service Management parses the payload as follows:
(in JSON format)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[
"eventId" : "8416215-4867000",
"eventType" : "ALERT_NOTIFICATION_TRIGGER",
"ruleExpression" : "Error Type is any",
"type" : "HTTP Server",
"agents" : "Agents:
Id:4522
Name:Amsterdam, Netherlands (Trial)
Active:1
MetricsAtStart:Error Type: "Connect"
MetricsAtEnd:
Id:108
Name:Boston, MA
Active:1
MetricsAtStart:Error type: "DNS"
MetricsAtEnd:Error type: "DNS"
",
"violationCount" : "1",
"dateStart" : "2016-06-07 08:48:08",
"ruleName" : "Default HTTP Alert Rule",
"testId" : "106681",
"alertId" : "4867000",
"permalink" : "https://app.thousandeyes.com/web/http-server?__a=50664&testId=106681&roundId=1465289288",
"ruleId" : "414881",
"testName" : "test1"
]
Close Alert payload:
{
"eventType": "ALERT_NOTIFICATION_CLEAR",
"eventId": "8416248-4867000",
"alert": {
"agents": [
{
"active": 0,
"metricsAtStart": "Error Type: \"Connect\"",
"metricsAtEnd": "Error Type: \"None\"",
"agentId": 4522,
"agentName": "Amsterdam, Netherlands (Trial)",
"dateStart": "2016-06-07 08:48:08",
"permalink": "https://app.thousandeyes.com/web/http-server?__a=50664&testId=106681&roundId=1465289288&agentId=4522"
}
],
"alertId": 4867000,
"dateEnd": "2016-06-07 08:50:05",
"dateStart": "2016-06-07 08:48:08",
"apiLinks": [
{
"rel": "related",
"href": "https://api.thousandeyes.com/tests/106681"
},
{
"rel": "data",
"href": "https://api.thousandeyes.com/web/http-server/106681"
}
],
"permalink": "https://app.thousandeyes.com/web/http-server?__a=50664&testId=106681&roundId=1465289288",
"ruleExpression": "Error Type is any",
"ruleName": "Default HTTP Alert Rule",
"ruleId" : "414881",
"testId": 106681,
"testName": "test1",
"violationCount": 1,
"type": "HTTP Server"
}
}
Was this helpful?