Uploaded image for project: 'Automation for Jira Server'
  1. Automation for Jira Server
  2. JIRAAUTOSERVER-487

Mention user under custom field doesn't create profile link (mention) for users created after GDPR changes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 7.4.2
    • Actions
    • Severity 3 - Minor
    • 0

    Description

      Issue Summary

      When a custom field 'User Picker (multiple users)' has users created after GDPR changes (having user key on JIRAUSERXXXXX format), Automation is not able to mention all users from the field.

      Steps to Reproduce

      Jira Software 8.22.1
      Automation for Jira 7.4.2

      1. Create an action to comment or send an email
      2. Using the following smart values to mention who's under a 'User Picker (multiple users)' custom field: i.e. Approvers field:
        Hi {{#issue.Approvers}}[~{{accountID}}]{{^last}} & {{/}}{{/}}
        Hi {{#issue.Approvers}}
        Hi {{issue.customfield_10207}}
        Hi {{issue.customfield_10207}}{{^last}} & {{/}}{{/}}
        Hi {{#issue.Approvers}}[~{{displayName}}]{{^last}} & {{/}}{{/}}
        {{issue.Approvers.name}}
        
        If the custom field has only one user, the mention works using the following smart values:
        [~{{issue.Approvers}}]
        [~{{issue.customfield_10207}}]
        

      Expected Results

      The output should mention each user included in the custom field.

      Actual Results

      Automation only mentions when there is a single user in the field and/or when the users have a username as a user key instead of JIRAUSERXXXXX 

      Workaround

      Using name
      i.e.

      {{#issue.Approvers}}[~{{name}}]{{^last}} & {{/}}{{/}}
      

      Attachments

        1. multiple_users.png
          multiple_users.png
          54 kB
        2. single_user.png
          single_user.png
          34 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              6bebacf0c7e4 Aline Staudt
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: