Ever wondered how to create scheduled jobs in your Jira Data Center plugin?
Well, here's a guide I put together on how to get it done with explanations of the various steps https://medium.com/@martyhenderson/scheduling-jobs-in-a-jira-data-center-plugin-like-its-2024-5ff53c8c9c24
I've always found that area of the code a bit tricky to understand, so I thought I'd share my experiences in how to get it working in a way that makes sense. (For me, anyways...)
Hopefully this will help some of you DC app developers get started and navigate this tricky area.
Marty
Hey Julia. So the point is to not set it in the atlassian-plugin.xml. It's handled by the spring wiring. In my example, this is handled in the JobScheduler class.
You can see an example https://github.com/Teams-Work-Ltd/jira-enhanced-scheduler-plugin-test/blob/main/src/main/java/com/teamswork/scheduler/test/component/JobScheduler.java