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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.