Create a request and perform similar actions in ServiceDesk Plus On-Premise from JIRA cloud
Overview:
This document outlines the steps to integrate JIRA with ServiceDesk Plus (SDP) using JIRA's native automation rules. This integration allows automated creation of requests in SDP when issues are created in JIRA.
Pre-requisites:
The domain of the ServiceDesk Plus application must be accessible over the internet; it should be publicly hosted and this is mandatory for the integration to work.
Integration Process:
JIRA has automation rules that can make API calls to SDP based on selected criteria. Follow the steps below to create an automation rule to perform actions in SDP.
Steps to Create an Automation Rule in JIRA
Navigate to Automation Settings:
1. Go to Settings in JIRA.
2. Select System settings.
3. Choose Automation under Global automation.
4. Click on Create rule.
5. Define the Trigger:
6. Inside the rule builder, choose a trigger based on your necessity (e.g., New issue created).
Configure the Action:
7. Click on THEN action.
8. In the action field, choose Send a web request action.
Set Up the Web Request:
9. In the action configuration tab, set the URL to https://<sdp_domain>/api/v3/requests (replace <sdp_domain> with your SDP domain).
10. The HTTP method should be POST.
11. Customize the Request Body:
Set the web request body to Custom data.
Fill in the custom data field with the following:
{{issue.summary}} and {{issue.description}} will dynamically replace the subject and description with the corresponding issue's summary and description when making the API request.
To include other fields from the issue, click on the {} icon and search for the issue parameter to be used. JIRA will show the corresponding value to be used in the JSON.
Configure Headers:
12. Set the headers as follows:
Key: authToken
Value: The authtoken generated in SDP
Key: Content-Type
Value: application/x-www-form-urlencoded
13. Save the rule and turn it on.
Result:
Once all the steps are completed, a corresponding request will be automatically created in SDP whenever an issue is created in JIRA.