Jira Service Management connector and action
Serverless Observability Serverless Security Stack
An Jira Service Management connector enables you to create and close alerts in Jira Service Management. In particular, it uses the Jira Service Management Integration Events API.
To create this connector, you must have a valid Jira Service Management URL and API key. For configuration tips, refer to Configure a Jira Service Management account.
You can create connectors in Stack Management > Connectors or as needed when you're creating a rule. For example:
Jira Service Management connectors have the following configuration properties:
- Name
- The name of the connector. The name is used to identify a connector in the management UI connector listing, or in the connector list when configuring an action.
- URL
-
The Jira Service Management URL. For example, https://api.atlassian.com.
NoteIf you are using the
xpack.actions.allowedHostssetting, make sure the hostname is added to the allowed hosts. - API Key
- The Jira Service Management API authentication key for HTTP basic authentication. For more details about generating Jira Service Management API keys, refer to Jira Service Management documentation.
After you create a connector, use the Test tab to test its actions:
When you create a rule that uses an Jira Service Management connector, its actions (with the exception of recovery actions) create Jira Service Management alerts. You can test this type of action when you create or edit your connector:
You can configure the create alert action through the form view or using a JSON editor.
The create alert action form has the following configuration properties.
- Message
- The message for the alert (required).
- Jira Service Management tags
- The tags for the alert (optional).
- Priority
- The priority level for the alert (optional).
- Description
- A description that provides detailed information about the alert (optional).
- Alias
- The alert identifier, which is used for alert deduplication in Jira Service Management. For more information, refer to the Jira Service Management documentation (optional).
- Entity
- The domain of the alert (optional).
- Source
- The source of the alert (optional).
- User
- The display name of the owner (optional).
- Note
- Additional information for the alert (optional).
A JSON editor is provided as an alternative to the form view and supports additional fields not shown in the form view. The JSON editor supports all of the forms configuration properties but as lowercase keys as described in the Jira Service Management API documentation. The JSON editor supports the following additional properties:
- responders
- The entities to receive notifications about the alert (optional).
- visibleTo
- The teams and users that the alert will be visible to without sending a notification to them (optional).
- actions
- The custom actions available to the alert (optional).
- details
- The custom properties of the alert (optional).
{
"message": "An example alert message",
"alias": "Life is too short for no alias",
"description":"Every alert needs a description",
"responders":[
{"id":"4513b7ea-3b91-438f-b7e4-e3e54af9147c", "type":"team"},
{"id":"bb4d9938-c3c2-455d-aaab-727aa701c0d8", "type":"user"},
{"id":"aee8a0de-c80f-4515-a232-501c0bc9d715", "type":"escalation"},
{"id":"80564037-1984-4f38-b98e-8a1f662df552", "type":"schedule"}
],
"visibleTo":[
{"id":"4513b7ea-3b91-438f-b7e4-e3e54af9147c","type":"team"},
{"id":"bb4d9938-c3c2-455d-aaab-727aa701c0d8","type":"user"}
],
"actions": ["Restart", "AnExampleAction"],
"tags": ["OverwriteQuietHours","Critical"],
"details":{"key1":"value1","key2":"value2"},
"entity":"An example entity",
"priority":"P1"
}
When you create a rule that uses an Jira Service Management connector, its recovery actions close Jira Service Management alerts. You can test this type of action when you create or edit your connector:
The close alert action has the following configuration properties.
- Alias
- The alert identifier, which is used for alert deduplication in Jira Service Management (required). The alias must match the value used when creating the alert. For more information, refer to the Jira Service Management documentation.
- Note
- Additional information for the alert (optional).
- Source
- The display name of the source (optional).
- User
- The display name of the owner (optional).
Use the Action configuration settings to customize connector networking configurations, such as proxies, certificates, or TLS settings. You can set configurations that apply to all your connectors or use xpack.actions.customHostSettings to set per-host configurations.
After obtaining an Jira Service Management instance, configure the API integration. For details, refer to the Jira Service Management documentation.
Go to the Operations > Overview dashboard, then select the appropriate team.
Select the Integrations menu item, then select Add integration.
Search for
APIand select the API integration.
Configure the integration. Ensure you record the API Key. You will later use this key to populate the API Key field when creating the Kibana Jira Service Management connector.
Select Turn on integration after you finish configuring the integration.