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

Rina Nir Solutions Partner Oct 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

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 Solutions Partner Oct 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

Rina Nir Solutions Partner Oct 18, 2016

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 Sign up to answer
Community showcase
Posted Tuesday in Statuspage

How do your teams prepare for really high (planned) traffic days like Cyber Monday?

Hi there! Shannon from Statuspage here.  👋  With Cyber Monday quickly approaching, we're looking to hear from Atlassian customers – specifically from teams who touch incident response li...

61 views 0 5
Join discussion

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