How to use ServiceDesk.Templates.Customer.Layouts.Page.oneCol soy in custom plugin

Patrik Waloszek September 23, 2022

Hello community,

We are preparing migration of the JSM 3.5.0 to 4.20.12. We have several custom plugins and one of them adds custom portal. This custom portal uses ServiceDesk.Templates.Customer.Layouts.Page.oneCol soy template.
It works on version 3.5.0 but on version 4.20.12 not. Issue is that Layouts is not defined when page is loaded in the browser.

TypeError: undefined is not an object (evaluating 'ServiceDesk.Templates.Customer.Layouts.Page')

We add this template to the portal in javaScript this way
$("#content").append(ServiceDesk.Templates.Customer.Layouts.Page.oneCol({}));

I try add dependency into my atlassian-plugin.xml

<dependency>com.atlassian.auiplugin:soy</dependency>
<dependency>com.atlassian.auiplugin:aui-page-layout</dependency>

and many other things but nothing help to us.

I found information about JSM soy templates changes but I can't find solution how to solve it.

Does anybody have suggestion how to solve this?

Thank you very much.
Patrik

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events