Forums

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

Jira issue search API not returning assignee

María José Barquero
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!
January 26, 2024

I am using the Jira Get API endpoint (/rest/api/2/search) to get all issues, but the issue objects being returned do not have certain fields in the fields object, such as the "assignee" field returning null. I tried specifying that all fields should be returned by adding "*all" to the fields query in the endpoint and yet it returns the same results. How do I specify the "assignee" field?

I want that if the item is assigned to me or other person, I can get the name
Issues do have assigned people.

When I use assignee = currentUser() it shows the assigned person, but when I put that API in Power BI it doesn't show me a table with data.

I don't know where I can check permissions.

example1.png

3 answers

0 votes
Bruno Cardoso
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!
June 11, 2024

Hello all,

I have a similar behavior, what I can add here, the issue as an invalid assignee, meaning a no longer active user.

Also, if I use the /rest/api/2/issue, the proper username (from the inactive user) will be retrieved. But not if is searched,  /rest/api/2/search?jql=, this way , it will return null.

any comments ?
Thanks


0 votes
Uday Kiran Bhaviri
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.
January 27, 2024

If issue is assigned to some user it should show the values, could you please check the issue details by passing the issue key value

/rest/api/2/issues/issuekey

0 votes
Kalyan Sattaluri
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.
January 26, 2024

what you are seeing on the screen is the field for assignee and will be populated if issue was infact assigned.

Please confirm issue is in fact assigned (and not "unassigned").

  • Take a sample issue in Jira and confirm its assigned in UI.
  • Open browser. Replace your domain and issue key in below URL and confirm in your REST response.
  • https://yourdomain.net/rest/api/2/issue/ISSUE-123

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events