How to get wiki links in search for issue api request ?

Alain L September 27, 2019

Hi

I'm currently using API to get a list of issues, and those issues may have a wiki link to a confluence page.

I am trying to get in a single request all theses informations

I can get list of issues with the api/search request with those kind of request:

http://myjira.f/rest/api/latest/search?jql=project=MYPRJ AND issuetype in (Story,"Technical Story")

but wiki links are not in the result object. I read that adding /remotelink give the wiki link:

http://myjira.f/rest/api/latest/issue/MYPRJ-13/remotelink

That means that I have to add a additionnal request for each issue, and with more than 100 stories, it takes some time. Is there a way to get those remote links directly is the search request (Maybe expand parameter could be a way ?)

Thanks

Alain

 

 

 

2 answers

1 vote
Alain L October 1, 2019

Hi Randy
Thanks for your answer.

I don't have "wiki" links in fields.issuelinks, In fields.issuelinks, I have "implementation" links, "test" links but "wiki" or "mentioned" are not present. 
It seems that wiki, mention are not issues links but application links, because it is menttionned like "Application" when I use remotelink on an issue, maybe the resaon why.

As a workaround, I used issue per issue call with /remotelink which works well, and is faster enough for 50 issues.

  

0 votes
Randy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 27, 2019

The links should be available in the fields.issuelinks array of each issue in the search response.  If you're limiting to specific fields, make sure issuelinks is passed in as a field you want included in the response via the fields parameter.

Suggest an answer

Log in or Sign up to answer