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.

0 answers

Suggest an answer

Log in or Sign up to answer