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

CEDRIC DEVAUX 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

2 answers

0 votes
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
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
Site Admin
TAGS
AUG Leaders

Atlassian Community Events