• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 3.0.0
    • 2.5.2
    • SLA

      JIRA ServiceDesk JQL functions doesn't return any issues when fetching issues inside a job using the Atlassian Scheduling API.

      Code:

      ..
      private final SearchProvider searchProvider;   //com.atlassian.jira.issue.search.SearchProvider
      ..
      final User user = ...  //An admin account is used, and is a ServiceDesk agent
      final String jql = "\"Time to resolution\" = breached()";
      Query query = new DefaultJqlQueryParser().parseQuery(jql);
                    
      SearchResults results = searchProvider.searchOverrideSecurity(query, user, PagerFilter.getUnlimitedFilter(), null);
       
      return results.getIssues(); //No result in Scheduler API but works in WebWork Action.
      

      If you run this from a user action, this works fine, but when doing this within a Atlassian Scheduler API job, this doesn't return any issues with an JQL containing a JQL function like "breached".

      Using other JQL functions, both from JIRA, but also from other plugin vendors, this code works fine. So this is very urgent for us, not being able to schedule queries, with JIRA ServiceDesk JQL functions.

      Cheers //Mathias (Developer of the "Notification Assistant for JIRA" plugin from Riada)

            [JSDSERVER-2141] JQL functions not working in Atlassian Scheduler API

            Owen made changes -
            Workflow Original: JSD Bug Workflow v5 - TEMP [ 2304603 ] New: JAC Bug Workflow v3 [ 3125435 ]
            Status Original: Done [ 10044 ] New: Closed [ 6 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v5 [ 2058457 ] New: JSD Bug Workflow v5 - TEMP [ 2304603 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v5 - TEMP [ 2055608 ] New: JSD Bug Workflow v5 [ 2058457 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v5 [ 1955451 ] New: JSD Bug Workflow v5 - TEMP [ 2055608 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v4 [ 1615078 ] New: JSD Bug Workflow v5 [ 1955451 ]
            Confluence Escalation Bot (Inactive) made changes -
            Labels New: affects-server
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v2 [ 1602982 ] New: JSD Bug Workflow v4 [ 1615078 ]
            Marty (Inactive) made changes -
            Component/s New: SLA [ 26194 ]
            Component/s Original: Related Plugins [ 44408 ]
            Owen made changes -
            Workflow Original: JSD Bug Workflow [ 1398918 ] New: JSD Bug Workflow v2 [ 1602982 ]
            Marty (Inactive) made changes -
            Component/s New: Related Plugins [ 44408 ]

              mmcmahon Matthew McMahon (Inactive)
              9ecfeedc62bd Mathias Edblom
              Affected customers:
              1 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: