Get started to create import item configuration


I am currently creating an import for a great number of items (see example in attached file). Since there are a lot of them, I would like to find a way to automize the creation with a configuration file. 

I would like to export that configuration so I can copy it on other environments without having to create it manually. 

Is there a way to run groovy scripts of some sort to perform this ? I have been looking at the API and the TemplateImportConfiguration seems appropriate. However when I tried create an object it made Insight bug. And creating a plug-in is way too tedious at the moment.

Thanks for your help,




2 answers

Hi Antoine,

There is an facade available for the Imports at

Note that there isn't yet a version 5.2 version released, it's to be released within the next days, but the mentioned API is available in 5.1

Best Regards

Hi Alexander, 

Thanks for your answer. Do I need to use a plug-in to use this class, or can I simply run a script with scriptRunner to create my import configuration ? I have been trying to create a plug-in but it is not working and I can barely afford more time trying to accomplish that.



You don't need to create a plugin for this class. Take a look at where we have a Java Example of how to set up the imports in the code.

Best Regards


Could you please provide a procedure with a short example so I can get started ?

I have tried putting the insight-5.1.4 jar in .../atlassian-jira/WEB-INF/lib. This makes the insight classes available but disables Insight (since I tried to create an object using insight classes). I am then using script runner to run the script (GG -> Script console).

In the upcoming version of Insight 5.2, we've added a Script Console, that would enable you to simple paste groovy scripts and execute on the fly, you could use this to create the imports needed. As you access our facade through our add-on, you would not need to add any dependencies other than the import statements like in our groovy script examples.

5.2 is to be released shortly, but there is already a public beta version released, available at

I think this beta version contains the mentioned added functionality, and its available at the add on section in Jira.

Best Regards

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

412 views 0 3
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