Hi
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.
I am using icon in the web item of system.top.navigation.bar which works completely fine.
But for this location,
{
“name”: {
“value”: “Reports”
},
“url”: “/main/pages/my/reports/saved”,
“key”: “jira-reports-open”,
“location”: “jira-reports-dropdown/jira-reports-section”,
“weight”: 1,
“icon”: {
“url”: “/images/reports.png”
}
}
I am unable to add the icons. The location I am trying is plugin sidebar. I am able to see the values but expecting an icon also to show. Is this something to do with the location? Why does the icon does not appear?
"modules": {
"webItems": [
{
"name": {
"value": "Reports and Timesheets"
},
"location": "system.top.navigation.bar",
"icon": {
"url": "/images/reports-side-bar.svg"
},
"url": "jira-reports-open",
"key": "jira-reports-dropdown",
"conditions": [
{
"condition": "user_is_logged_in"
},
{
"or": [
{
"condition": "user_is_admin"
},
{
"condition": "entity_property_contains_any_user_group",
"params": {
"entity": "addon",
"propertyKey": "aio_access",
"objectName": "aio_access_create"
}
},
{
"condition": "entity_property_exists",
"invert": true,
"params": {
"entity": "addon",
"propertyKey": "aio_access"
}
},
{
"condition": "entity_property_equal_to",
"params": {
"entity": "addon",
"propertyKey": "aio_access",
"objectName": "aio_access_create",
"value": "[]"
}
}
]
}
]
},
{
"name": {
"value": "Log work"
},
"location": "operations-work",
"url": "/main/pages/dialog/logworkissue?issueKey={issue.key}&gdpr=y",
"key": "aio-log-work-issue",
"context": "page",
"weight": 1,
"target": {
"type": "dialog",
"options": {
"chrome": false,
"width": "80%",
"height": "70%"
}
},
"conditions": [
{
"condition": "addon_time_tracking_provider_enabled",
"params": {
"addonKey": "com.kaanha.reports",
"moduleKey": "aio-time-tracking"
}
}
]
},
{
"key": "jira-reports-create-menu",
"location": "admin_plugins_menu/appfire-reports-menu",
"name": {
"value": "Create Report",
"i18n": "Create Report"
},
"url": "jira-reports-create-from-admin",
"context": "page",
},
{
"key": "jira-reports-admin-menu",
"location": "admin_plugins_menu/appfire-reports-menu",
"name": {
"value": "App Settings",
"i18n": "App Settings"
},
"url": "jira-reports-admin",
"context": "page"
}
],
"generalPages": [
{
"name": {
"value": "Reports"
},
"url": "/main/pages/my/reports/saved",
"key": "jira-reports-open",
"location": "jira-reports-dropdown/jira-reports-section",
"weight": 1,
"icon": {
"url": "/images/reports.png"
}
},
{
"name": {
"value": "Timesheets"
},
"url": "/main/pages/aiotimeentry",
"key": "jira-reports-timesheet-entry",
"location": "jira-reports-dropdown/jira-reports-section",
"weight": 2,
"icon": {
"url": "/images/side-nav-images/timesheets.svg"
}
},
{
"name": {
"value": "My Area",
"icon": {
"url": "/images/reports-side-bar.svg"
}
},
"url": "/main/pages/my/calculatedfields/view",
"key": "jira-reports-calculatedFields",
"location": "jira-reports-dropdown/jira-reports-section",
"weight": 3,
"icon": {
"url": "/images/reports-side-bar.svg"
}
},
{
"name": {
"value": "Administration"
},
"url": "/main/pages/admin/apppreferences",
"key": "jira-reports-admin",
"location": "jira-reports-dropdown/jira-reports-section",
"weight": 4,
"icon": {
"url": "/images/side-nav-images/administration.svg"
}
},
{
"name": {
"value": "Create New Report"
},
"url": "/main/pages/newreport/designer/aioreport?rovoToken={ac.rovoToken}",
"key": "jira-reports-create",
"location": "jira-reports-dropdown/jira-reports-section",
"weight": 5
},
{
"name": {
"value": "Timesheet Report"
},
"url": "/main/pages/newreport/designer/aiotimesheet",
"key": "jira-reports-timesheet",
"location": "jira-reports-dropdown/jira-reports-section-hid",
"weight": 3
},
{
"name": {
"value": ""
},
"url": "/main/pages/newreport/reports/samplereports",
"key": "jira-reports-help",
"location": "jira-reports-dropdown/jira-reports-section-hid",
"weight": 6
},
{
"name": {
"value": "Help"
},
"url": "/main/pages/help/gettingstarted",
"key": "jira-reports-kb",
"location": "jira-reports-dropdown/jira-reports-section",
"weight": 200,
"icon": {
"url": "/images/side-nav-images/help.svg"
}
},
{
"name": {
"value": "Appfire App"
},
"url": "/main/pages/newreport/designer/aioreport?aioReportId={ac.aioReportId}&gdpr=y&db={ac.db}",
"location": "jira-reports-dropdown/jira-reports-section-hidden",
"key": "jira-reports-app",
"weight": 8
},
{
"name": {
"value": "Tempo Timesheets"
},
"url": "/main/pages/admin/tempointegration",
"location": "jira-reports-dropdown/jira-reports-section-hidden",
"key": "aio-app-tempo",
"weight": 9
},
{
"name": {
"value": "Import Templates"
},
"url": "/main/pages/admin/dataimport",
"location": "jira-reports-dropdown/jira-reports-section-hidden",
"key": "aio-app-import-sample",
"weight": 10
},
{
"name": {
"value": "Timesheet Approval Queue"
},
"url": "/main/pages/my/mytimeapprovalqueue",
"location": "jira-reports-dropdown/jira-reports-section-hidden",
"key": "aio-app-time-approval",
"weight": 11
},
{
"name": {
"value": "Custom Report"
},
"url": "/main/pages/newreport/designer/aioreport",
"key": "jira-reports-create-from-admin",
"location": "jira-reports-dropdown/jira-reports-section-hidden",
"weight": 12
}
],
"postInstallPage": {
"url": "/main/pages/newreport/reports/samplereports",
"name": {
"value": "Start exploring Templates"
},
"key": "aio-reports-post-install-page"
},
"webSections": [
{
"name": {
"value": ""
},
"location": "jira-reports-dropdown",
"key": "jira-reports-section",
"condition": {
"condition": "user_is_logged_in"
}
},
{
"key": "appfire-reports-menu",
"location": "admin_plugins_menu",
"name": {
"value": "Reports and Timesheets"
},
"icon": {
"url": "/images/reports-side-bar.svg"
}
}
],
"jiraDashboardItems": [
{
"name": {
"value": "Reports and Timesheets for Jira",
"i18n": "Reports and Timesheets for Jira"
},
"url": "/main/pages/dashboard?dashboard={dashboard.id}&dashboardItem={dashboardItem.id}&gdpr=y",
"key": "iframe-requests",
"description": {
"value": "Reports and Timesheets for Jira Dashboard Item",
"i18n": "Reports and Timesheets for Jira Dashboard Item"
},
"thumbnailUrl": "/images/plugin-banner.png",
"configurable": true
},
{
"name": {
"value": "Appfire Time Entry Gadget",
"i18n": "Appfire Time Entry Gadget"
},
"url": "/main/pages/dashboard-time-entry?dashboard={dashboard.id}&dashboardItem={dashboardItem.id}&gdpr=y",
"key": "aio-time-entry",
"description": {
"value": "Log time right from the dashboard using Appfire Time Entry gadget",
"i18n": "Log time right from the dashboard using Appfire Time Entry gadget"
},
"thumbnailUrl": "/images/plugin-banner.png",
"configurable": true
}
],
"jiraTimeTrackingProviders": [
{
"name": {
"value": "Reports and Timesheets"
},
"key": "aio-time-tracking"
}
]
}
Actual
Expected
I have found another article raising the same concern.
Didnt find any answers.