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

Group Picker Searcher does not have consistent case-sensitivity

    Details

    • Type: Bug
    • Status: Triage (View Workflow)
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 5.6.7.1-jira8
    • Fix Version/s: None
    • Component/s: Scripted Fields
    • Labels:
      None
    • Critical Points:
      0.1

      Description

      ScriptRunner's Group Picker Searcher subclasses Jira's own GroupPickerSearcher class, which converts group names to lower case before storing them in the index. However, it searches the index case-sensitively, which means that group names containing upper-case letters will not be correctly found.

      This problem does not occur for regular group picker custom fields because they are all indexed by MultiGroupCFType.MultiGroupCustomFieldIndexer, which stores group names in the index as-is without normalising the case. Note that despite being called MultiGroupCustomFieldIndexer, this indexer is used for both single- and multi-group picker fields. We should do the same.

      It is possible to work around the problem by using the Multi Group Picker Searcher instead: this necessitates also switching to the 'Group Picker (multiple groups)' template and wrapping the output of the field's script in a singleton list.

        Attachments

          Structure

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jchoules Joanna Choules
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Structure Helper Panel