Forums

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

How to perform jql issue search by summary and key at the same time

Aleksandr Kosmatkov
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 30, 2023

I'm trying to get list of issues filtered by search parameter

 

GET https://api.atlassian.com/ex/jira/${cloudId}/rest/api/3/search?jql=summary ~ "${search}*"

query above works perfect

but when I add "OR key = ${search}" 

GET https://api.atlassian.com/ex/jira/${cloudId}/rest/api/3/search?jql=summary ~ "${search}*" OR key = ${search}

and pass incorrect format of key or not existing key of issue (e.g. any text query), but included in summary field  it gives me

"The issue key 'TEST' for field 'key' is invalid." 

or

"Issue does not exist or you do not have permission to see it."

Is there any possibility to get issues by summary OR key satisfying the search parameter in the same query?

 

Much appreciate your help!

1 answer

0 votes
Mohamed Benziane
Community Champion
November 30, 2023

Hi,

I tried in my browser and the JQL seems fine so can you print the parameter and make sure that they are correct.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events