Forums

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

Filter with Jira

Max Mustermann
Contributor
October 30, 2022

Hello,
is there a way to filter only the id and the key of an issue, when using a http request?

/rest/api/2/search?jql=project%3D"ECP"%20AND%20status%3DDone

1 answer

1 accepted

1 vote
Answer accepted
Tom Lister
Community Champion
October 30, 2022

Hi @Max Mustermann 

If you want to query by issue keys you can use

issue = "DT2-1"

or

issue in ( "DT2-1", DT2-2")

If you want to control the data returned in the REST cal you will need to use the POST version and configure a JSON request body to control the fields returned.

{ 
"
jql": "project = ECP",
"
startAt": 0,
"
maxResults": 15,
"
fields": [
"key",
"id" 
]
,
"
fieldsByKeys": false
}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events