Forums

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

What is endpoint for getting issue list, when user is authenticated via OAuth.

Vineet tanwar
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!
March 11, 2021

I am integrating JIRA APIs to get issue import from user's JIRA account. For this, I have used OAuth. I have successfully setup the system by following the link 

         https://developer.atlassian.com/cloud/jira/platform/oauth-2-3lo-apps/ 


But now the issue is that, while fetching data from API 

        https://api.atlassian.com/ex/jira/<cloud-id>/rest/api/2/project 

I am getting empty array.

I have added some issues in my jira account, and also, my local app is listed in `manage app` settings. But I am still not getting the issue list.

Screenshot from 2021-03-12 12-23-58.pngScreenshot from 2021-03-12 12-23-02.png

1 answer

0 votes
Trudy Claspill
Community Champion
March 12, 2021

Hello @Vineet tanwar 

Welcome to the community.

In the documentation for the REST API documentation

https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#version

...it says...

Screen Shot 2021-03-12 at 4.18.19 PM.png

So, the first part of the endpoint needs to be your site URL for your JIRA instance, not "api.atlassian.com".

After that, it depends on exactly what data your are trying to retrieve. What data are you trying to retrieve?

Vineet tanwar
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!
March 14, 2021

Hii @Trudy Claspill , 
Thanks for your reply, 

I have read the document, but I could not found the way to get list of all issues, 
from the URL. It is saying that issueIdOrKey is required, and for getting the list, I think, in our application, we would't have any issueIdOrKey.


    Also, I am using OAuth, so can you please tell, how to pass the CODE, which I got from redirecting after getting allowance from user's JIRA account,  in request body to  call the GET API.

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