Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket pull request plugin: my servlet reloads page when I activate my tab

Deleted user June 19, 2018

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?

1 answer

1 accepted

1 vote
Answer accepted
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 21, 2018

Hi Raven! Welcome to the Atlassian Community!

For this kind of questions, you'll be more likely to get the assistance you need in our Developer Community. For the future, you might also be interested to check our Developer resources.

Hope that helps!

Ana

Deleted user June 21, 2018

Thanx. I've already looked through the documentaion. Seems like I found an answer

johngun3 September 18, 2018

Care to follow up with the answer you found? I'm sure other people, including myself, would like to know the answer.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events