Forums

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

Need to fetch specific fields (without avatar)

Jay Joshi
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 6, 2020

This is my script:

jira.PNG

This is the snippet of output:

result.PNG

I want to get rid of the avature and only want the displayName of the assignee. Need urgent help please. 

1 answer

0 votes
Daniel Ebers
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.
November 8, 2020

Hi Jay,

welcome to the Atlassian Community!

You probably did everything right. Here is some more information on this topic:
https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-limit-the-fields-in-the-JIRA-Rest-response/qaq-p/561379

This is a discussion on Community from some time ago. The outcome was that you can request specific fields but the avatar URLs is expected output.

Cheers,
Daniel

Jay Joshi
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 8, 2020

Hii @Daniel 

 

Sorry but it didn't solve the problem as that thread is also not answered I guess.

 

Can you please suggest me solution. 

 

Thank You

Daniel Ebers
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.
November 9, 2020

Reproduced on my machine I can confirm you did nothing wrong.
Although you can select specific fields the set of data returned when querying the assignee is like expected.

All you can do is to process the received data locally - like cutting away information that is not useful to you. In a former project (I double checked this morning) we did it also like this.
There is no further option to make the response for the assignee "less verbose", I am afraid.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events