Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-5635

The aggregateExpression () JQL function doesn't consistently show results

    XMLWordPrintableJSON

    Details

    • Sprint:
      SR4J Sprint 113
    • Critical Points:
      9.2

      Description

      ScriptRunner's aggregateExpression() JQL function is not consistently showing results in the issue navigator. This bug might be more likely to occur if certain apps are installed, e.g Elements Connect or The Scheduler.

      Steps to Reproduce

      1. Create a Project with some Issues. Input some estimates in them.
      2. Install The Scheduler or Elements Connect plugin
      3. Go to Issue Navigator and use the aggregateExpression() JQL function. Example:
        issueFunction in aggregateExpression("Original estimate sum", "originalEstimate.sum()", "Time spent sum", "timespent.sum()", "Remaining estimate sum", "remainingEstimate.sum()")

      Expected Behaviour

      The aggregateExpression() JQL function displays the results

      The Scheduler plugin is disabled

      Actual Behaviour

      The aggregateExpression() JQL function does not display the results

      The following error is shown in the browser console:

      Uncaught (in promise) TypeError: Cannot read properties of null (reading 'querySelector')
          at findChildElement (DomUtils.ts?ecd0:16)
          at eval (DomUtils.ts?ecd0:8)
          at new Promise (<anonymous>)
          at findChildElementAsync (DomUtils.ts?ecd0:8)
          at eval (jqlQueryDoc.ts?6a37:167)
          at step (jqlQueryDoc.ts:53)
          at Object.eval [as next] (jqlQueryDoc.ts:34)
          at eval (jqlQueryDoc.ts:28)
          at new Promise (<anonymous>)
          at __awaiter (jqlQueryDoc.ts:24)
      

      The Scheduler plugin is enabled

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rlander Reece Lander
              Reporter:
              imazuki Irfan Mazuki
              Votes:
              7 Vote for this issue
              Watchers:
              21 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: