I need to query all issues from multiple Jira projects and prepare statistics in my custom plugin. What is preferable API for doing it? I’ve found SearchService, but it requires ApplicationUser instance to process searching. Also I see that Active Objects API working with DB, but as documentation says here https://developer.atlassian.com/server/framework/atlassian-sdk/active-objects/ “A plugin can access only the data that belongs to it, not data belonging to other plugins or to the host products.” and AO examples persist custom objects, but not issues. Can issues be queried via AO?
Can I schedule some sort of background job to be processed inside Jira Server (updating statistics etc.)? Or should I use Jira REST API instead and do processing outside Jira Server and then grab the result from external API?