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

Raphaël Bahuau Jul 16, 2018

Hello,

 

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.

 

Thanks.

1 answer

1 accepted

2 votes
Answer accepted
Mark Markov Community Leader Jul 16, 2018 • edited

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.

https://community.atlassian.com/t5/Jira-articles/Work-with-your-Jira-plugin-from-Adaptivist-ScriptRunner-or-how/ba-p/719050

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

https://community.atlassian.com/t5/Jira-articles/Part-1-How-to-deploy-Adaptivist-ScriptRunner-scripts-and-objects/ba-p/794887

Raphaël Bahuau Jul 16, 2018 • edited

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 ?

Mark Markov Community Leader Jul 16, 2018

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

Raphaël Bahuau Jul 16, 2018

Okay,

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

How can apply this for deployment ?

Mark Markov Community Leader Jul 17, 2018

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.

Raphaël Bahuau Jul 18, 2018

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
This widget could not be displayed.
This widget could not be displayed.
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 ...

682 views 7 0
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