Is it possible to query a list of the scheduled issues and the watchers of each scheduled issue within a project? Or, is it possible to list issues that have been created from the scheduler with this same information?
I believe with JQL, you won't get explicit result of watchers list as it's intention is to return tickets always
With that in mind you can build queries returning issues where some conditions are satisfied.
You can start building your query with:
1. all issues created by The Scheduler in given project list eg. SDD:
issue in schedulerGetAllGeneratedIssues(SSD)
Source: https://psc-software.atlassian.net/wiki/spaces/SCHED/pages/401997825/Dedicated+JQL+functions
2. if you want to get issues with current user as a watcher add "AND watcher = currentUser()"
issue in schedulerGetAllGeneratedIssues(SSD) AND watcher = currentUser()
3. now, if you want to exclude issues where current user is assignee to geth 'other' issues at plate:
issue in schedulerGetAllGeneratedIssues(SSD) AND watcher = currentUser() AND (assignee is EMPTY OR assignee != currentUser())
You can also check watchers in specified list of watchers, and replace it with currentUser(): https://community.atlassian.com/t5/Jira-Software-questions/JQL-Option-for-querying-stories-by-the-Watcher-list/qaq-p/1372732
Hello,
This is helpful for me to track down issues generated by the Scheduler. I am more looking to query data related to the Scheduler tasks themselves. Is this possible to do with SQL?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.