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

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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

21,494 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you