[Collaboration Champion] Atlassian team avatar displays incorrectly (Before it's okay)

Hi,

I don’t know why the team avatar can’t show normally as before:


Is there anyone who’s got the same issue?

Thanks,

YY1

Hi @YY1

Can you provide more information, like your code/components used to display avatars.

how do they like when it was working ?

Hi Flix,

Here’s the source code:

      teamAvatar: team.smallHeaderImageUrl?.includes('ptc-directory-sited-static') 
        ? team.smallAvatarImageUrl 
        : team.smallHeaderImageUrl,

After investigation, it seems the server where team avatars were stored has changed recently from ptc-directory-sited-static to api.media.atlassian.com for customized team avatar?

Could you help suggest how to get the team avatar to void the impace of future changes?

Thanks,

YY1

Hi @YY1

Which endpoint do you use to have your ‘team’ object ?

Could you also share a link to the documentation of this endpoint ?

team graphql: Team-v2

I haven’t used GraphQL that much, but it seems that some endpoints are not publicly available and are only accessible to Atlassian internally.

Do you have any documentation or references where you found your GraphQL requests?

There is a new ECT about Team, maybe new API will exist soon: