Forums

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

Get all project avatars is not working as expected

Durgaprasad Jamanjyothi {Appfire}
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 4, 2020

We are trying to use https://developer.atlassian.com/cloud/jira/platform/rest/v3/?utm_source=%2Fcloud%2Fjira%2Fplatform%2Frest%2F&utm_medium=302#api-rest-api-3-project-projectIdOrKey-avatars-get to get list of project avatars. Instead of project avatars, it is returning the user avatars

Expected (see the urls object. the dimension property url is /secure/viewavatar. This is the example response snippet from Atlassian. ):

{
      "id": "1000",
      "isSystemAvatar": true,
      "isSelected": false,
      "isDeletable": false,
      "urls": {
        "16x16": "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10040&avatarType=project",
        "24x24": "https://your-domain.atlassian.net/secure/viewavatar?size=small&avatarId=10040&avatarType=project",
        "32x32": "https://your-domain.atlassian.net/secure/viewavatar?size=medium&avatarId=10040&avatarType=project",
        "48x48": "https://your-domain.atlassian.net/secure/viewavatar?avatarId=10040&avatarType=project"
      }
    }

 Actual (Check the url object. Each dimension property is referring to /secure/useravatar):

{
id: "10400",
isSystemAvatar: true,
isSelected: false,
isDeletable: false,
urls: {
16x16: "/secure/useravatar?size=xsmall&avatarId=10400",
24x24: "/secure/useravatar?size=small&avatarId=10400",
32x32: "/secure/useravatar?size=medium&avatarId=10400",
48x48: "/secure/useravatar?avatarId=10400"
}
}

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events