I am trying to update my stash plugin for Bitbucket server 4, but I get this exception while rendering the soy template:
com.google.template.soy.tofu.SoyTofuException: Attempting to render undefined template 'widget,aui.pageHeader'.
{call widget.aui.pageHeader}
{param content}
<h2>{getText('stash2slack.global.settings.heading')}</h2>
{/param}
{/call}
this was working fine in previous release in stash. I don't see where are the template changes documented for Bitbucket server 4. Thanks in advance!
Community moderators have prevented the ability to post new answers.
Hi Daniel,
You can find documentation about what has changed and how you can upgrade your add-on here: https://confluence.atlassian.com/bitbucketserver/how-to-update-your-add-on-779302412.html
The widget.aui.pageHeader
template name hasn't changed. What has changed, is the name of server provided templates that you need to include as a dependency. In your atlassian-plugin.xml, you'll have to replace all occurrences of
<dependency>com.atlassian.stash.stash-web-plugin:server-soy-templates</dependency>
with
<dependency>com.atlassian.bitbucket.server.bitbucket-web:server-soy-templates</dependency>
Hope this helps!
Thank you, I've deleted this dependency by mistake during the class rename party!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also worth noting that this template (and that dependency) aren't really part of the API anyway. You probably should use the AUI templates directly - aui.page.pageHeader, aui.page.pageHeaderMain, and possibly aui.page.pageHeaderActions. https://bitbucket.org/atlassian/aui/src/bff1c0c19ec38f93a8829cd1203e9fcae7d13fe9/src/soy/page.soy?at=master&fileviewer=file-view-default#page.soy-217
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.