Forums

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

Assets REST API avatar field is null

Filip Baszak September 2, 2025

Hi, one of my clients has very interesting problem. While using my plugin he get from /object/aql API all data, except avatar property (inside avatar, mediaClientConfig is empty). Official REST-API docs say nothing about such behaviour.

Maybe someone had simillar problem and knows how to make it visible via API again?

 

EDIT: I have a clue, that situation happens on new cloud instances, the oldest with such behaviour has 4 days.

1 answer

1 accepted

2 votes
Answer accepted
Christos Markoulatos
Contributor
September 2, 2025

Hey Filip

I’ve seen this happen before. The avatar object in the /object/aql response only contains full details if a custom avatar is set on the object and the request is made with admin-level permissions. If the object uses the default icon, the API often returns avatar: null or an empty mediaClientConfig.

Even when there is a custom avatar, if the token doesn’t have the right permissions (Assets or Jira admin), the mediaClientConfig part will stay empty. This is expected behavior and not really documented in the official API reference.

If you just need the image, check the url16, url48, etc. fields in the avatar object. Those usually work even when mediaClientConfig is empty.

Default icon → null avatar
Custom icon + no admin rights → empty mediaClientConfig
Custom icon + admin rights → full avatar info

Hope that clears it up.

Filip Baszak September 2, 2025

Hmmm, case is that, plugin tries to access assets REST API using jira admin API token, so I guess that permissions should be ok.

And what do you mean that avatar is null when object has default icon? As docs says, url16 (for exmpl) is inside avatar object so you want to say that there is no option to get icon/avatar link at all?

Filip Baszak September 3, 2025

@Christos Markoulatos you were right, but I would like to make small correction. On my new instance, behaviour was like this:

Default icon -> avatar object was ok, mediaClientConfig was null

Everything else seems fine, thank you and cheers!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events