Export/Import of project with ScriptRunner

I have Project Configurator for exporting/importing my project without data or user information.  This works great for JIRA Core (we're on 7.6.0), as we have 3 different environments that we want to keep the same (development, test, and operations).

However, the export does not seem to capture any of the post-function and behaviours I have scripted up in ScriptRunner.  Our workflow has several places where actions occur based on changes, either to the fields or to state.

I'm trying to minimize the amount of reconfiguration per environment.  Is there a way, or another addon to do this, where you can export/import configurations including things like ScriptRunner?  Or would that just be a bit too crazy complicated to know all the permutations?  What have others done to reduce the possibility of someone flubbing up these type of things between environments?



2 answers

I believe this should just work out of the box. What's the actual issue you're seeing?

Well if I export the entire project using JIRA's export, it grabs everything, including the ScriptRunner stuff, but it also has data.  Guess I should explain, my goal is to have something that I can import into a new environment and it will contain the structure of our project (workflow, custom fields, the post function and behavior scripting, etc) but not contain data that is specific to that environment, like test issues created, our active directory integration (which easy enough to turn on and off), those sort of things.


So when I use Project Configurator, it's grabbing all the stuff related to our project, except for the defined behaviors/post-functions (which I am guessing is because those are defined within an addon and not native to JIRA core by itself).  We just have several scripted things going on throughout all our transitions and I was hoping to be able to pull those in along with the "shell" of our project.

Ooooook, I found in the export file from Project Configurator where the scripts for state changes are!  I was grepping for actual text not realizing they were byted up into a data object.

We have Script Listeners, also, that fire off emails based on Issue Updated events.  Looking through the xml I'm not able to find those.  Are they also included and I'm just missing where they are?

Part of the problem is right now, I only have one environment to work with (and only one server I was given access to), so I'm trying to come up with a deployment plan without exporting, wiping out my JIRA installs, and then reinstalling and importing and seeing what all is there.  So yeah a bit of pain.  If I had two servers I could at least be testing all this out and figuring out on my own.  But alas, budget crunch.

I run Jira on my laptop for testing purposes all the time. You can also run a second Jira instance on your prod environment assuming that you have enough underlying resources to not impact prod.

Ended up checking out Botronsoft Configuration Manager.  Solved my situation wonderfully.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,096 views 4 9
Read article

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