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

Groups and roles that have whitespace can't be searched using inRole or inGroup predicate of commented JQL function

    XMLWordPrintableJSON

    Details

    • Sprint:
      Sprint 27 - Ends Nov 18
    • Critical Points:
      4.2

      Description

      Update:
      On further examination, it appears that whitespace is not the issue, but quoted strings within a JQL query. This only appears to affect JIRA 6 and ScriptRunner 4.3.x. ScriptRunner 4.5 versions and JIRA 7 are able to perform queries like

      issueFunction not in lastComment( "inRole 'Team Members' ")
      

      without issue.

      Original description:

      Hi,

      I'm wondering can you help, I have a user who's attempting to run the following query on JIRA v6.3.14:

      issueFunction not in commented('after -8d by user groupLevel All Users')

      Unfortunately they are receiving the following message:

      _Argument not properly formed.
      The argument should be in the form ("by jbloggs"), or any of ("by jbloggs on Date after Date before Date inRole Role inGroup Group roleLevel Role groupLevel Group"). Date can be either a date or an expression like -5d or -8w._

      It looks like the JQL wont recognize the statement due to the whitespace within 'All Users'.

      Can you assist in identifying a possible work around if there is one?

      The goal is to search for issues where a comment has not been made within a specific time interval and does not have a groupLevel restriction. If we include 'jira-users', 'Developers', etc in the query it will work but when substituted with 'All Users' it will not.

      Any help is much appreciated.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jcarter Jonny Carter
              Reporter:
              SeanB Sean Bennett
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: