Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to third party REST API url from Jira

Ramesh Ranganathan September 30, 2020

Hi All,

 

I want to trigger below the API call whenever the Issue is created or Updated om Jira.

please guide me where I have to configure the REST API settings

 

 

In Body section i want to send the Issues details

var request = new sn_ws.RESTMessageV2();
request.setEndpoint('https://dev496691.service-now.com/api/93513/from_jira');
request.setHttpMethod('POST');

//Eg. UserName="admin", Password="admin" for this code sample.
var user = 'Test';
var password = 'Test';

request.setBasicAuth(user,password);
request.setRequestHeader("Accept","application/json");
request.setRequestHeader('Content-Type','application/json');
request.setRequestBody();
var response = request.execute();
gs.log(response.getBody());

 

Thanks

 

1 answer

0 votes
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 2, 2020

Hello @Ramesh Ranganathan , 

If I understand correctly you are trying to integrate ServiceNow with Jira Cloud using REST API. Is this correct?

If this is correct then please let me know so I can move this question to the right collection (marketplace and integrations), otherwise please provide more details on what you are trying to achieve.

 

However, generically speaking, you can set an automation rule (global or project specific) that sends a request to the desired endpoint every time an issue is created or updated in your Jira instance. For details on how to do so, please see:

 

For other ways to integrate with ServiceNow you can also see below links:



Cheers,
Dario

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events