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

Rina Nir (AC)
Solutions Partner
Solution Partners provide consulting, sales, and technical services on Atlassian products.
October 18, 2016

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 vote
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 18, 2016

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.

Rina Nir (AC)
Solutions Partner
Solution Partners provide consulting, sales, and technical services on Atlassian products.
October 18, 2016

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

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 18, 2016
Rina Nir (AC)
Solutions Partner
Solution Partners provide consulting, sales, and technical services on Atlassian products.
October 18, 2016

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

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 18, 2016

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 Sign up to answer