How to add a icon on remotelink with a api call creation

CEDRIC DEVAUX
Contributor
February 16, 2024

Hi everyone,

 

I use API call to add remote link on a ticket to access on a another ticketing tool.

As describe, I'm able to create remote link

 How to use REST API to add remote links in JIRA issues? 

 

When I put the example from Atlassian's document, on the left of URL appears an icon personalized with Atlassian logo

But when change URL in the remote link API, I have a standard remote link icon as you can see on my screenshot.

2024-02-16 11 09 51.png

I want to modify the remote link icon in order to have a personalized icon to distinguish between other URL link

 

I found this Json body, I have no error but the icon is still the same.

{
"object": {
"url":"https://myurl.com",
"title": "My title",
"icon": {
url16x16: "https://my-personalized-url-icon/filename.png"
}
}
}

Do you know if we can modify the icon?

 

Thank you

4 answers

1 vote
Doruk Güneş
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!
July 30, 2024

Experiencing the same issue, although we are sending the icon url16x16, it does not show up in the issue detail.

(Intentionally removed the icon url for the screenshot purposes)

Screenshot 2024-07-30 at 17.23.26.pngScreenshot 2024-07-30 at 17.23.30.png

1 vote
Clemens Buergi
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 17, 2024

I have tried with this JSON
{
"object": {
"url": "<link>",
"title": "A new user story",
"summary": "<p>As (user) I need to (activity) so that (business value).</p>\n\n<p>&nbsp;</p>\n\n<p>&nbsp;</p>\n\n<p><strong>Acceptance criteria:</strong></p>\n\n<p>Performance in scenario A is better than x.</p>\n",
"icon": {
"url16x16": "https://i.ibb.co/GvzZDfP/jama-connect-16x16.png",
"title": "My icon"
}
}
}

but I am not getting the icon displayed nor is the summary shown in the preview, when hovering over the link.

Was anyone able to display custom link icons?

0 votes
Dane Kantner
Contributor
August 13, 2024

Has anyone been able to work-around this?


I have code that was working, but broke at some point in the last 2 years. 

I do wonder if this is intentional as when you enable this it actually will be retrieving a URL from the atlassian server on behalf of you to load this?

 

It might be nice if they just supported SVG inputs there

(it's also not easy to test in that there are very limited "public" 16x16 images to test that are known to work -- and even the examples listed in Jira's docs are now outdated and 404s -- in fact that domain is for sale which is pretty suspect for using that in documentation -- it would be great if atlassian itself would just make the 16x16 png library available within our own tenant)

0 votes
Scott Wai Chee Tan May 16, 2024

I believe your Icon parameter format got a bit wrong here.

It will be like this:

"icon": { 2 "url16x16":"<img link>", 3 "title":"Support Ticket" 4 }

References: 

Changing icons for Remote Links in Jira

Suggest an answer

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

Atlassian Community Events