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

Expression JQL function doesn't work with user-picker custom fields

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.0.17
    • Fix Version/s: 5.4.38
    • Component/s: None
    • Labels:
      None
    • Environment:

      ScriptRunner| 5.0.17 |

      JIRA Software| 7.4.3 |

    • Sprint:
      Sprint 37 - Ends Jan 29, Sprint 38 - Next
    • Critical Points:
      0.7

      Description

      If you try to make comparisons involving a user-picker custom field (including script fields) in the JQL Expression function, you will be met with the following error:

      Field LastCommentAuthor found but has no searcher. Edit it, set the searcher, and reindex.

      Where "Last Comment Author" is an example custom user-picker field.

       

      Steps to reproduce:

      • Create either a new custom user-picker field or a Script field that returns an ApplicationUser.
        • Set the field to show on the appropriate screens
        • Ensure that your field has the proper searcher and template
      • Create an issue and give your new field a user value.
      • Now search your issues and try to execute a JQL user comparison using the Expression function like the following:
        issueFunction in expression("","CustomFieldName != Assignee")
      • Upon executing your JQL, observe the error that was mentioned above.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ahasan Ashraful Hasan [X] (Inactive)
              Reporter:
              aderossett Aidan Derossett
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: