Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,369,529
Community Members
 
Community Events
168
Community Groups

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

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

Atlassian Community Events