The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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/