Forums

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

Storing initialization database data and deploying it within the plugin jar file?

Martin Fischer March 11, 2021

Hello, 

we've created a Jira plugin and now we would like to deploy it. There's no problem with installing this new clear plugin and using it in another Jira server instance. But we would like to deploy it with already "pre-installed" data. Is there a right way how to paste this database data to the plugin .jar file? Or is there another possible way how to achieve anything like this? Or the only way is to have some init file prepared which would be "hard-coded" and run it on the first pass?

Would be really glad for any idea.

1 answer

1 accepted

1 vote
Answer accepted
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
March 11, 2021

Hi @Martin Fischer , I would use Active Objects Upgrade tasks. You can find some documentation here:

https://developer.atlassian.com/server/framework/atlassian-sdk/handling-ao-upgrade-tasks/

Suggest an answer

Log in or Sign up to answer