Forums

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

How to export Insight schema using Scriptrunner?

vcuculic
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 2, 2023

I would like to make scheduled automatic Insight schemas export by using Scriptrunner. 

I already know how to manually do a Insight schema export through UI but that doesn't suits my needs to have it automatic and scheduled.

Tried using following class (https://insight-javadoc.riada.io/insight-javadoc-5.6/insight-core/index.html?com/riadalabs/jira/plugins/insight/services/imports/model/schema/ExportObjectSchemaDataBean.html), but it doesn't accept parameters given:

  • String fileName = "TestExportCards.zip"
  • Integer objectSchemaId = ID OF THE SCHEMA
  • String objectSchemaName = NAME OF THE SCHEMA
  • boolean includeObjects = true

Beside the Scriptrunner, tried with PWS script using REST API, but that doesn't give me proper export structure, as only information about data is extracted and not the data itself like avatars in PNG format, csv files, folders etc.

1 answer

0 votes
Aron Gombas _Midori_
Community Champion
March 3, 2023

Maybe you could try this with Automation for Jira.

They have an action which can send a web request. Basically, it can send HTTP(S) requests to a given URL and accept the response. 

I could imagine that it would support your usecase.

vcuculic
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 3, 2023

Unfortunately this won't work as Insight doesn't have API for the backups.

Suggest an answer

Log in or Sign up to answer