Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-75220

the componentsLeadByUser function in JQL still uses user_name as argument

XMLWordPrintable

      Issue Summary

      the componentsLeadByUser function in JQL still uses user_name as argument.
      This is fine for most cases, but will fail if the display_name is different than the user_name

      Steps to Reproduce

      1. Have a user whose "user_name" is different than the "display_name". This can usually happen after an import from Server where the email address matches an existing AA ID
      2. Add that user as a component lead
      3. Perform a JQL:
        component in componentsleadbyuser(that_user)
        

      Expected Results

      The issues with that component will show as results

      Actual Results

      The JQL will throw an error:
      "Function 'componentsleadbyuser' can not generate a list of components for user 'display_name'; the user does not exist.

      Workaround

      Provide the AAID (Atlassian Account User Id) as an argument to componentsLeadByUser() function instead of a user name. In order to learn what the AAID of particular user is, one may try building a JQL query in Advanced Mode for an assignee field, i.e. assignee = start_typing_user_name. User picker would pop up and the query would be completed with the selected user AAID, e.g. asignee = abcde-12345. Copy that AAID into the original component in componentsLeadByUser(abcde-12345) query.

              Unassigned Unassigned
              clionte Claudiu Lionte (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: