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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Service Desk

Wy are we still using email for Service Desk workflows?

...attest to the experience of an urgent approval that gets lost in the boss’s inbox and requires that special “Please Approve” email or text message. In an age where we have distributed teams...

111 views 0 2
Read article

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