Forums

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

Issue while using the function "issue in linkedIssues" in REST API search

Sachin B K
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!
November 5, 2024

Hello Experts,

 

When I open my scrum board in web browser and select “Issues->Search for issues” and give the JQL query “type in ("Requirement") AND project  = XXX and labels = YYY AND issue in linkedIssues (ZZZ)” in the search bar, I am able to get 1 record. Where ZZZ is a Jira epic.

But if I run the same JQL query using REST API search i am getting the error “{"errorMessages":["Issue ‘ZZZ’ could not be found in function 'linkedIssues'."],"errors":{}}

I am using the REST API for search given in the below link https://docs.atlassian.com/software/jira/docs/api/REST/9.12.14/#api/2/search

What I figured out was that the part “issue in linkedIssues (ZZZ)” was giving the issue. Because, if I remove that part and run the query using REST API search i am able to get the same records as in web browser. If i only run the query “issue in linkedIssues (ZZZ)” using REST API search i getting the error and hence this is the part causing the error.

Please help me in overcoming the issue.

Thanks and regards,

Sachin B K.

1 answer

0 votes
Prashant BALASUBRAMANYAN January 20, 2025

I have the same issue, looking for a resolution as well. Only the REST API call fails, where as the JQL query does return the linkedissues. Is it anything to do with the api version maybe? 

Suggest an answer

Log in or Sign up to answer