logo

NJP

Get list of issues from Jira using REST API

Import · Nov 03, 2020 · article

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

image

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

image

Name = Jira integration

Endpoint = https://.atlassian.net/rest/api/2/search?jql=project=

Authentication type = Basic

Basic auth profile = reference to profile

Step 4 : Create HTTP method with below details

Name = Get Issues

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

Authentication type = inherit from parent

image

Step 5 : Test API

Click on test button, output would look like below.

image

View original source

https://www.servicenow.com/community/now-platform-articles/get-list-of-issues-from-jira-using-rest-api/ta-p/2319625