Forums

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

Is there any Rest API or JQL query which gives issues in a project having 1 or more issue links?

Deleted user November 3, 2022

Hi Team,

I am trying to find a Rest API or JQL query which provides me the details of only issues in a project which are having one or more issuelinks in them.

I have tried to search the Rest API from the list of API's given for Jira server (adding the hyperlink below) by Atlassian but I couldn't find any such API. 

https://docs.atlassian.com/software/jira/docs/api/REST/8.9.1/

I have tried to hit the following Rest API as well:

https://localhost:8080/rest/api/2/issue/ABCTEST-593?fields=issuelinks

But I am getting list of all the issues in the response.

Can anyone please help me in this.

 

Thanks & Regards,

Preethi H R

1 answer

0 votes
Julia Jansson
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.
November 3, 2022

Hi Preethi,

To get a list over all issues that has at least one issue link you could perform the following JQL search: issueLinkType is not EMPTY

If you want to narrow down the results to a specific project, just add the projectname or key to the beginning of your query: project = projectname AND issueLinkType is not EMPTY

Hope you find this helpful!

Deleted user November 4, 2022

Hi Jansson,

I have tried executing the above JQL query on my Jira server instance. But I am not able to fetch the issues. I am getting the error on the screen as attached below:

Screenshot (59).png

And I have tried the following JQL as well:

project = ONEPLUS AND issueLinkType != Empty

It is also giving the same error.

Can you please guide me on it?

 

Thanks & Regards,

Preethi H R

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events