Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Yaml file example to create scriptunner plugin

Krishnanand Nayak
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.
June 27, 2020

We are creating a plugin that will manage all our custom Scriptrunner files. Looking for a template or example or documentation link explaining how to create the scriptrunner.yaml file and the required information.

1 answer

1 accepted

0 votes
Answer accepted
Michel Tremblay [Adaptavist] July 16, 2020

There is how to create a script plugin here : 
https://scriptrunner.adaptavist.com/5.6.8/jira/creating-a-script-plugin.html

Also 

Source code of a sample Script plugin for all products:
https://bitbucket.org/Adaptavist/scriptrunner-samples.git

 

Great Idea to package all your script in a plugin.. This is was I always advise my customer. 

Krishnanand Nayak
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.
July 17, 2020

Thansk... i looked at this and have wondering :

1) are these the standard values for Listeners, Rest Endpoints and fragments?

2) how to handle scripts related to WF and Custom fields?

yaml example

Michel Tremblay [Adaptavist] July 17, 2020

You can use the configuration exporter to help you with the YAML creation

https://scriptrunner.adaptavist.com/6.4.0-p5/jira/builtin-scripts.html#_configuration_exporter

It doesn't support everything though. 

For workflow Scripts and Custom Field Scripts, you need to put the file manually in them (They can't be automated using YAML)
For their path, you simply have to copy relative path and enter this path into jira as if the file was present. (The plugin will put that file as available in that path after the plugin is installed)2020-07-17 12_58_55-Window.png

Suggest an answer

Log in or Sign up to answer