Jira Automation for Tagging users that are a part of a custom field that has multiple users

Katelyn Slosson February 4, 2025

We have a few custom fields that we want to use in automation in which the automation would leave a comment tagging the users in the comment. As of now I have found a way to have it show the users names, but not tag them. When I try to add the [~] to get it to tag it, it turns into @Unknown.  

 

The field is called "UAT Sign off Team"

 

{{Issue.customfield_10302.DisplayName}} - will write out the comment with the multiple peoples names in that field but will not a a tag. 

How can I adjust my Comment to have the names show up as tags? 

 

 

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 4, 2025

Hi @Katelyn Slosson 

Would you please clarify what you are trying to do? 

Perhaps if you post images of your complete rule and audit log details, that will provide some context.

 

For fields which support mentions, such as Comments and Description, that looks like this behind the scenes, where the user's account ID value is used to identify them:

[~accountid:6207f8c9e5caff0070e46e41]

And it displays the user's Display Name in the field.

 

Kind regards,
Bill

Katelyn Slosson February 4, 2025

@Bill Sheboy 

Here is what I have 

Our UAT Sign off Team field is a user pick "Multiple" 

The best way I could find do the the display name for the UAT sign off field where there are multiple people is highlighted in Yellow, however it does not create a tag as expected. When I add the [~] around it, it creates the Tag, but with an Unknown user.2025-02-04_13-12-49.jpg

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 4, 2025

Thanks for that information...it shows you want to add zero-to-many mentions in the comment from the multiple-select, user field.

That may be done using an iterator to dynamically add the mentions.  For example:

{{#issue.customfield_10302}}[~accountid:{{accountId}}]{{^last}}, {{/}}{{#last}}:{{/}}{{/}}

This ticket is now ready for UAT. Please review and approve...


I put the list of user mentions on the first line, separated by commas, with a colon after the last entry to lead into the text.  Please change the formatting to meet your needs.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events