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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

81 views 1 0
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