Embedded Icon in Web item inside web-section

Ali December 1, 2023

Hello,

Is that possible to add icon in web-item ?
if yes how to do this using atlassian-connect.json?

1 answer

0 votes
Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 4, 2023

Hello, Good day. Please provide more information on your requirements. Are you developing an application to integrate with Jira cloud ?

Ali December 5, 2023

Hello @Mohanraj Thangamuthu ,

yes I am developing an application to integrate with Jira cloud and I am trying to add web-item with icon and value.
The icon not even showing but the value is correctly appear.

this is my web-item in atlassian-connect.json


"webItems": [
{
"key": "web-item-servicedesk-agent-queues-web-section-servicedesk-agent-queues",
"location": "servicedesk.agent.queues/web-section-servicedesk-agent-queues",
"url": "/qrGenerator?issueId={issue.id}&projectKey=${project.key}&serviceDeskId=${servicedesk.serviceDeskId}&projectId=${project.id}&issueKey={issue.key}",
"name": {
"value": "xxxxxxxxxx"
},
"weight": 200,
"context": "addon",
"icon": {
"width": 16,
"height": 16,
"url": "${servlet.path}/images/qrCode.png"
},
"target": {
"type": "dialog",
"options": {
"header": {
"value": "xxxxxxxxxxxxxxxxxx"
}
}
},
"tooltip": {
"value": "xxxxxxx"
},
"conditions": [
{
"condition": "user_is_logged_in"
},
{
"condition": "addon_is_licensed",
"invert": "${exclude.license}"
}
]
},
{
"url": "/license",
"location": "servicedesk.agent.queues/web-section-servicedesk-agent-queues",
"key": "mfj-web-item-servicedesk-agent-queues-web-section-servicedesk-agent-queues-license",
"name": {
"value": "xxxxxxxxx"
},
"icon": {
"width": 16,
"height": 16,
 "url": "${servlet.path}/images/qrCode.png"
},
"conditions": [
{
"condition": "user_is_logged_in"
},
{
"condition": "addon_is_licensed",
"invert": "${prod.use}"
}
]
}]
Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 5, 2023

Thanks for confirming. Please move this query to https://community.developer.atlassian.com/

Like Ali likes this

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