Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Javascript plugin configuration

ecentria-labs December 24, 2014

I'm trying to build a simple plugin that would include a JS file from a different server. I need a way to configure the plugin, so that I can specify include URL form admin panel, without the need to rebuild and reinstall plugin. I can't find any documentation on this topic. Can anyone advise what would be the easiest way to go about it?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 29, 2014

This tutorial is designed for the Atlassian Reference Application, but it should be mostly applicable to Stash as well: https://developer.atlassian.com/docs/common-coding-tasks/creating-an-admin-configuration-form

You may also be interested in how to store the include URL in the database, so look at the documentation on https://developer.atlassian.com/display/SAL/Storing+plugin+settings

 

TAGS
AUG Leaders

Atlassian Community Events