It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Usage of javascript dependencies in repository-hook config form

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
Community showcase
Published in Marketplace Apps & Integrations

Expose your beautifully crafted Dashboard through the Jira Service Desk Customer Portal

  A picture is worth a thousand words, especially when you're trying to find relationships and understand your data. Here, Dashboards play a vital role in gaining insights from a variety of dat...

221 views 3 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you