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

Account for project filtering when checking the inRole predicate

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: 5.6.6.1-jira8
    • Fix Version/s: None
    • Component/s: JQL Functions
    • Labels:
      None
    • Critical Points:
      0

      Description

      The inRole condition, provided by JQL functions such as lastComment, currently requires ScriptRunner to iterate through every project role defined on the instance - this can be time consuming if the number of such roles is high. However, in cases where some other part of the JQL query restricts the applicable projects (as indicated by QueryCreationContext#getDeterminedProjects), ScriptRunner need only consider the roles for those projects, which could represent a considerable saving on time.

        Attachments

          Issue Links

            Structure

              Activity

                People

                Assignee:
                Unassigned
                Reporter:
                jchoules Joanna Choules
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Structure Helper Panel