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.
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"
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 above example will return three fields in a tabular format:
- jira_issue_link, jira_issue_key, correlation_id
- jira_issue_link - URL of the jira issue created or udpated
- jira_issue_key - key of the jira issue created or updated
- correlation_id - the correlation ID the user can provide in the custom command to uniquely track the action performed by the user.
If your configuration operates on Splunk Cloud Architecture, you should only execute the custom command from the search heads.
Configure Alert Actions for the Splunk Add-on for Jira Cloud | Source types for the Splunk Add-on for Jira Cloud |
This documentation applies to the following versions of Splunk® Supported Add-ons: released
Feedback submitted, thanks!