Forums

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

Attempting to render template

Ildar Fetkulov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 29, 2020

Dear all!

In Bitbucket v 6.0.+ We used to 

SoyMailMessageRequest messageRequest = new SoyMailMessageRequest.Builder()
.cssModuleKey(CSS_KEY)
.context(context)
.recipients(Collections.singleton(currentUser))
.soyTemplateModuleKey(TEMPLATE_KEY)
.soyTemplateName(TEMPLATE_NAME)
.subjectKey(messageTitleKey)
.build();

Iterable<MailMessage> messages = soyMailBuilder.build(messageRequest);

 After migration on v 6.7.+ it fails with message:

Getting Attempting to render undefined template 'bitbucket.internal.email.layout.chrome'.

(https://developer.atlassian.com/server/bitbucket/reference/api-changelog/#bitbucket-server-6-7 States that it is no longer supported )

How should I change this dependencies:

<client-resource key="gii-email-templates" name="Email Templates">
<directory location="/email/">
<include>/**/*.soy</include>
</directory>
<dependency>com.atlassian.bitbucket.server.bitbucket-web:server-soy-templates</dependency>
<dependency>com.atlassian.bitbucket.server.bitbucket-notification:notification-email-templates</dependency>
</client-resource>

Thanks in advance!

 

P.S. Could we get a sources of Server Bitbucket if our company is a Atlassian Partner.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events