Use the custom command in Splunk Add-on for Jira Cloud¶
To create or update a Jira issue, you can also utilize the custom command functionality. This custom command returns the details of the Jira issue created or updated in a tabular format.
Custom command example¶
The following is an example on how to use the custom command in the add-on:
| makeresults | jiracloudissue api_token="test" project_key="DEMO" issue_type="Story" summary="Test Summary" priority="High" description="Test description" labels="label1,label2" components="comp1,comp2" jira_key="TEMP-123" correlation_id="00000000-0000-0000-0000-00000000" status="In Progress" parent="ABCD-123"
In this example, jiracloudissue
is the name of the custom command and the others are parameters which are used to create or update the Jira issue. The custom command functions in a similar way to that of Alert Action as it internally utilizes the alert action functionality.
The data used in the example return three fields in a tabular format:
jira_issue_link
- The URL of the Jira issue created or udpated.jira_issue_key
- The key of the Jira issue created or updated.correlation_id
- The correlation ID you can provide in the custom command to uniquely track the action performed.
Note
If your configuration operates on Splunk Cloud Architecture, only execute the custom command from the search heads.