Forums

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

Using Oauth in postman to get Jira Projects and Issues

Vicente Gutiérrez Zumbado
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 25, 2023

Hello Community, 

I have been trying to connect to Jira Cloud using Oauth v2.0 in postman, but I cant get it to work. 

 

First, I am not sure if I should create the Oauth credential using Application links or the developer console or by going to settings > apps > Oauth Credentials. 
I have tried with all of them and still cant access Jira. 

I am able to get all the JSON data with basic auth but would like to use Oauth. 

So which should I use? I believe the developer console route should be the one I need to pick, right? 

If I use that one, I am able to create a token successfully in postman, but when I try to use an API to get the project info and issues I experienced the following: 

If I use this URL:

GET https://api.atlassian.com/oauth/token/accessible-resources

200 OK
And I get the JSON containing the accessible resources. 

If I use this URL with the same token: 

GET https://testjirad365.atlassian.net/rest/api/2/issue/HTP-1

401 Unauthorized. 

Client must be authenticated to access this resource.
This is what I am using in postman:

(same URL I entered in the developer console in Jira)

Auth URL: https://auth.atlassian.com/authorize?audience=api.atlassian.com

Access Token URL:  https://auth.atlassian.com/oauth/token

Client ID and Secret  (From the Developer Console in Jira) 
Scope: read:jira-work

Again, with this info I can create a new access token in postman, it will prompt a confirmation page of the access in Jira and proceed successfully.  But I still cant get the JSON from Jira. 

Any ideas what is missing or am I doing something wrong? 
Thanks!

0 answers

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