Hello!
The story so far: I've added Tab web-item into pull request view section. I want it behave like original (like tabs Overview, Diff, Commits). I mean when I click it data adds without page reload. So, when I click my tab I send get request to my servlet via the link which is in my web-item module
<web-item key="bitbucket.pull-request.nav.report" name="Pull Request Comments Statistics Tab" section="bitbucket.pull-request.nav" weight="40">
<label key="plugin.comments.stats.header" />
<link linkId="comments-stats-report">/plugins/servlet/commentsstats/projects/${repository.project.key}/repos/${repository.slug}/pull-requests/${pullRequest.id}</link>
</web-item>
Servlet responses correctly and I see my tab active and data added. Though, I don't use any JS. But the page is reloaded. When I click Overview tab, for example, it's simply being activated and data appeares without page reloaded.
What can you suggest?