Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-2141

JQL functions not working in Atlassian Scheduler API

    XMLWordPrintable

Details

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

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

              mmcmahon Matthew McMahon (Inactive)
              9ecfeedc62bd Mathias Edblom
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync