Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

VaranAwesomenow
Mega Sage

How to get list of issues from Jira

Step 1: Setup API token in Jira via url = https://id.atlassian.com/manage-profile/security/api-tokens

API token will be in below format

nU4uEFXlSDgyOZsyqfrGEDBX

Step 2: Create basic auth profile with user name as email address password from step 1

find_real_file.png

Step 3: Create a REST API in ServiceNow with following details

find_real_file.png

Name = Jira integration

Endpoint = https://<ID>.atlassian.net/rest/api/2/search?jql=project=<ProjectName>

Authentication type = Basic

Basic auth profile = reference to profile

Step 4 : Create HTTP method with below details

Name = Get Issues

End point = https://<ID>.atlassian.net/rest/api/2/search?jql=project=<ProjectName> (same as the end point from REST Message)

Authentication type = inherit from parent

find_real_file.png

Step 5 : Test API

Click on test button, output would look like below.

find_real_file.png

 

Version history
Last update:
‎11-03-2020 03:37 AM
Updated by: