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

    • Bug
    • Status: Done
    • High
    • Resolution: Fixed
    • 5.0.17
    • 5.4.38
    • None
    • None
    • ScriptRunner| 5.0.17 |

      JIRA Software| 7.4.3 |

    • Sprint 37 - Ends Jan 29, Sprint 38 - Next
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: