Left navigation bar is not showing in custom report, just in webPanel

Nahuel Hernán Espiño December 6, 2017

Hi Atlassian guys! I'm developing a Jira Plugin Report:

"jiraReports": [
{
"url": "/login?pkey={project.key}",
"description": {
"value": "Description of the report"
},
"reportCategory": "forecast_management",
"thumbnailUrl": "https://example.image.com/1.jpg",
"name": {
"value": "Custom Report"
},
"key": "custom-report"
}
]


It works well, but I couldn't manage to show left navigtion bar. The only way I could achieve this was creating a webItem, linked to a webPanel:

"webItems": [
{
"location": "jira.project.sidebar.plugins.navigation",
"key": "connect-provided-link-to-panel",
"url": "/projects/{project.key}?selectedItem=com.example.plugin__connect-provided-web-panel",
"context": "product",
"name": {
"value": "Custom Report"
}
}
],
"webPanels" : [
{
"key": "connect-provided-web-panel",
"url": "/login?pkey={project.key}",
"location": "com.example.plugin__connect-provided-web-panel",
"name": {
"value": "Custom Report"
}
}
]


I observe that when accessing urls starting with https://example.atlassian.net/plugins/servlet/ac/com.example.plugin/... will not have the navigation bar, as it not considered to be for a specific project. I also tried to pass url inline variables (?pkey={project.key}, and others...) with no positive result.

When accessing urls starting with https://example.atlassian.net/projects/MSP?selectedItem=com.example.plugin... like the one from the webPanel (https://example.atlassian.net/projects/MSP?selectedItem=com.example.plugin__connect-provided-web-panel) the left navigation bar shows.

1) How can I activate left navigation bar for my plugin (accessing through https://example.atlassian.net/plugins/servlet/ac/com.example.plugin/custom-report?project.key=MSP&project.id=10000)?

or

2) How can I get the project report page to show my custom report in Forecast & Management, but linking to the webPanel instead of linking to https://example.atlassian.net/plugins/servlet/ac/com.example.plugin/custom-report?project.key=MSP&project.id=10000?

0 answers

Suggest an answer

Log in or Sign up to answer