Forums

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

I am not getting the Assignee Data if I am making the jql query

SHUBHAM GUPTA May 16, 2018

Hi 

I am trying to pull the list of issues using the JIRA API

http://......./rest/api/2/search?jql=%20updated%20%3E=%20%222018/05/09%22

Now the problem is that in this case when I get the list of issues. In the JSON I am not getting the assignee data for any of the issues.

But when I make this query

http://...../rest/api/2/issue/{IssueId}/

In this case I get the assignee of the corresponding IssueId.

 

Please help me out for the same.

1 answer

0 votes
Jobin Kuruvilla [Adaptavist]
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.
May 16, 2018

You can pass the "fields" param to include "assignee" in a comma separated list of values.

See https://docs.atlassian.com/software/jira/docs/api/REST/7.9.0/#api/2/search-search for more details.

SHUBHAM GUPTA May 16, 2018

Can you please share an example as I am new to JIRA API and may not be aware about the correct syntax. My requirement is to get the records based on the updated date and it should contain all the fields.

Jobin Kuruvilla [Adaptavist]
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.
May 16, 2018

http://......./rest/api/2/search?jql=YourQuery&fields=key,summary,assignee

SHUBHAM GUPTA May 16, 2018

Thanks a ton man... ;)

Suggest an answer

Log in or Sign up to answer