Hello!I need to fill some settings in DB once. Can i do it when someone click on enable button?
Thanks
Hello,
Do you mean that you are developing a custom plugin for Jira Server/Data Center and you want to do some action, when your plugin has been enabled?
If so, then you have two choices:
1. Use afterPropertiesSet() method. You can find more info here:
https://community.atlassian.com/t5/Marketplace-Apps-questions/Jira-plugin-quot-afterPropertiesSet-quot-and-quot-destroy-quot/qaq-p/97321
2. Use plugin lifecycle. You can find more info here:
https://community.atlassian.com/t5/Answers-Developer-Questions/onStart-from-com-atlassian-sal-api-lifecycle-LifecycleAware-is/qaq-p/509824
It looks like you're new here. Sign in or register to get started.