We’ve added a web item to the sidebar navigation in Jira in our add-on. It works fine apart from the fact that when it is selected it is not marked (that is the background color is not changed). When selecting one of Jira’s pre-existing web items in the list it is marked with the class ‘aui-nav-selected’ added to the list element. I would have thought that this behavior should work “out of the box” but that does not seem to be the case. Does anyone know if there is anything in particular that needs to be done to fix this?
The web item looks something like this in our atlassian-plugin.xml:
Yes.
It seems that the web-item key “foo-item” needs to match the link-url “xxx:foo-item”, but I could not find any documentation about it.
It works fine on my JIRA 7.4.0.
It worked for me very well. Please see below all places where I used “sidebar-item”. Maybe you can paste your full atlassian-plugin.xml as well and we all together have a look.
Sorry for my slow response here. I just tried it out again and my issue was with the url in the link. When I changed it to the same form as your link it all worked. Thanks guys for your excellent help!