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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Script Runner deployment



I work with the plugin Script Runner, and now I have more than 20 scripts.


I use SVN to manage the scripts versions of my application. I have one trunk and some tags.

I have the currently version of my application on the trunk, and a preproduction environment on one tag.


Presently, when I want to update the prodution with all the preproduction scripts, I update them one by one with my little hands in the Script Runner interface, and I'm wasting a lot of time...


How can I deploy all of my scripts (script listeners, script fields...) quickly in jira ?



And same question with Javascript scripts with the plugin JSincluder.



1 answer

1 accepted

2 votes
Answer accepted

Hello @Raphaël Bahuau
I'm not sure that JSincluder have that kind of functionality, but in scriptrunner you can do it in several ways. 

First one is to store your code in scrtiptfiles in your sripts root directory.

And second one, you can create scriptrunner plugin and deploy it,  please check this article

Hello @Mark Markov,

I already code the plugin in your 2nd link, but I don't understand everything...

If I want to redeploy, I have to recompile and reinstall the plugin with the new scripts ?

Yes. with the second method you create independent plugin with scriptrunner objects inside it.


And with the first method I understand is just to use personnal Library.

How can apply this for deployment ?

The goal of first method that you store all your scripts on file system and in configuration of listeners, workflows etc. use this files instead of inline scripting.

And if you have files on fs, you can do whatever you want. For example store files in butbucket and deploying it via Bamboo.

Oh okay.

I'm trying to do the first method but because I have the same class on many script, the plugin can't compile...

But I have an idea to fix this, I have to make the first method with a file wich contain my duplicated classes :) !

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

3,894 views 11 5
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you