combining assignee and project queries

rpsg35 February 7, 2020

I am trying to fetch data by fetching response from https://domain_name.com/rest/api/2/search?jql=project=project_name&assignee=assignee_name. However the response will yield data of all assignee and not the one specified in the jql request.

 

fetching from https://domain_name.com/rest/api/2/search?jql=assignee=assignee_name however , will send the data of issue only assigned to the specified user.

Is there some other way to trigger the api request using combined queries? 

1 answer

1 vote
Cristiano Mariano
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.
February 7, 2020

Hi @rpsg35 ! Welcome to the community!

You have got to use the AND clause in your query. So it should be project=ABC%20AND%20assignee=jsmith.

When you use an ampersand, in fact you are creating another parameter (not appending to the jql parameter).

Hope this helps!

rpsg35 February 7, 2020

Yup...  Great. Thanks 

Suggest an answer

Log in or Sign up to answer