It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Alain L I'm New Here Sep 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 I'm New Here Oct 01, 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.

  

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
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

308 views 1 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you