Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Not able to get Sprint, comments, confluence page link and epic details in /rest/api/2/search api

Mukund Waghmode
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!
August 11, 2020

Hello,
I am using below api to get all issues.

/rest/api/2/search

 I need Sprint, comments, confluence page link ,epic details of specific issue but unable to find these fields in response.

Is there any way to get above mentioned information?

2 answers

0 votes
Mukund Waghmode
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!
August 16, 2020

Hello @Angélica Luz 
I already tried above 1.0 api. Currently we are using v2 api's and oauth 2 token. While calling 1.0 api using oauth 2 token it gives below error.

{    "errorMessages": [        "OAuth 2.0 is not enabled for this method."    ]}

Is there any way to use 1.0 api using oauth 2 token?

Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 18, 2020

Thank you for the details, Mukund.

OAuth 2.0 is not currently supported for Jira Software API endpoints. 

It works only with Jira Core and Service Desk.

There is a feature request suggesting the implementation of this ability:

Please, click on vote and watch to receive updates about the feature.

0 votes
Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 14, 2020

Hello @Mukund Waghmode,

Welcome to Atlassian Community!

Testing using the API you mentioned and also the v3 of API, it doesn't show Epic details and Confluence page link.

The API that returns an issue with information about Epic is:

/rest/agile/1.0/issue/{issueIdOrKey}

Regarding the Confluence pages, it's another API that returns this information:

/rest/api/latest/issue/<issue key>/remotelink

Please, give it a try and let us know how it goes.

Regards,
Angélica

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events