Usage of javascript dependencies in repository-hook config form

amedwedew March 16, 2018

I would like to use aui select 2 inside javascript function that forms config form view for repository hook. 

 

I tried to use web-resources to compile soy-template with needed dependencies like this:

<web-resource key="my_resource" name="my resource name">
<dependency>com.atlassian.auiplugin:ajs</dependency>
<dependency>com.atlassian.auiplugin:aui-select2</dependency>
<dependency>com.atlassian.auiplugin:aui-flag</dependency>

<transformation extension="soy">
<transformer key="soyTransformer" />
</transformation>

<!-- JavaScript resources -->
<resource name="simple.js" type="download" location="/templates/simple.soy"/>
<context>context1</context>
</web-resource>

But i cannot understand how to specify such web resource as a value of view element of config-form. 

 

Is there a proper way to use deps inside config form view?

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events