I cannot find any information about why it is disabled in the logs.
An old thread from 2019 said you need to implement a LifeCycleAware class:
But that’s not included in the job-config documentation. I tried to implement it anyway, but found only LifeCycleAware interface is available, the other one NotificationScheduler isn’t. I implemented LifecycleAware and it has no effect. The old post did not mention any configuration to go with it.
How do you implement a job-config for Jira?
Also, the job-config documentation only mentions Confluence. What about Jira? Once the module is enabled, will the job shows up in Gear | System | Scheduler details | Jobs?
How do I implement a JobRunner in plugin so that it shows up here?
I managed to schedule and run my JobRunner class successfully now, but I’ve ran into a new problem.
When the JobRunner class is executed, it does not have access to the other classes in the plugin:
Caused by: java.lang.ClassNotFoundException: Unable to load class 'com.igsl.ldapuserattributes.LDAPUserAttributes' because the bundle wiring for com.igsl.LDAPUserAttributes is no longer valid.
Edit: It might actually be this problem… not my plugin class LDAPUserAttributes, but rather the LDAP context factory class.
I know Confluence has a mechanism to manually execute jobs or change them, but I don’t believe Jira has similar capabilities. You could perhaps extract your work to a separate service and invoke it separately from your own page, as well as run it in the scheduled job.
Edit: I could be wrong, but I am not aware of a way to do it and searching didn’t show anything obvious to me.