Forums

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

Can I force the issueType icon to be PNG?

Austen Lux
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!
May 3, 2018

I'm getting a list of issueType's via the following API call:
https://<base_url>/rest/api/2/issuetype

And receiving a response with a list of these issueType objects:
{
"self": "https://<base_url>/rest/api/2/issuetype/1",
"id": "1",
"description": "A problem which impairs or prevents the functions of the product.",
"iconUrl": "https://<base_url>/secure/viewavatar?size=xsmall&avatarId=10303&avatarType=issuetype",
"name": "Bug",
"subtask": false,
"avatarId": 10303
}

The "iconUrl" is provided via the "/secure/viewavatar" API, and for most of the issueType's in my Jira instance, those icons are SVGs.

Is there a way for me to force the "/secure/viewavatar" endpoint to return PNG files? Maybe with a different query parameter? Or will it just always return the same file type that was provided to it when the issueType's were initially created?

 

1 answer

3 votes
Tim Pettersen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 9, 2019

Hi @Austen Lux!

Jira will convert the issue type icon to PNG if you append a `format=png` query parameter, e.g.:

https://<base_url>/secure/viewavatar?size=xsmall&avatarId=10303&avatarType=issuetype&format=png

Hope this helps!

cheers,

Tim

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events