When and how to use the canned ScriptRunner script 'Configuration exporter'?

JIRA 7.1.9

ScriptRunner 4.3.9

I noticed there is a (new?) canned script called 'Configuration Exporter', and as moving configuration between instances is always a hot-topic I wanted to explore what it does.  My impression was that it facilitates exporting of some ScriptRunner related items (at least listeners- which was the only item type this instance had) and generates .yaml code.

It then said: Copy and paste the following to your script-runner.yaml file

Fair enough. However- I could not find any doc explaining how and to what end I should use this yaml file.


Is there any documentation available which I missed?

1 answer

1 accepted

1 votes

Hi Rina...

Docs are here: https://scriptrunner.adaptavist.com/latest/jira/creating-a-script-plugin.html

Also https://scriptrunner.adaptavist.com/latest/jira/DevEnvironment.html has been worked, which is a precursor to creating script plugins.

Thanks for teh speedy response

So, that's what I understand:

  1. You have scripotrunner bit as 'inline' scripts in your dev instance.
  2. The tool automatically finds those items and creates a .yaml export
  3. Which can be packaged into a ScriptRunner plug-in and installed on prod.

Would be nice to have something mentioned here also: https://scriptrunner.adaptavist.com/latest/jira/builtin-scripts.html

Yes, I notice now that the plugin example also has a yaml file in it!

Yes... the yaml file is only requred for stuff that you configure through the UI, eg listeners. Built-in scripts are just found through classpath scanning, so they only need to be present (with the right package, currently).

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

930 views 5 18
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot