The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

How to mention the user in the comment text when using the JMWE Groovy Template

jira_admin_cu
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 Champions.
April 9, 2025

Hi Team,

We would like to add a comment to the ticket using the JMWE "Comment Issue Post Function." I want to tag (mention) both the reporter and the assignee of the ticket. I have tried various methods mentioned in other articles, but none have worked. Can anyone suggest how to mention the reporter and assignee in the ticket comment?

Both are displaying only names in plain text, not tagging users in the ticket comment.

Platform : Jira Data Center

mention.png

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
David Fischer
Community Champion
April 9, 2025

Hi @jira_admin_cu 

To mention the assignee, you can use:

[~${issue.assigne.key}]

 however, this will only work if you have configured  the Comments field to support Wiki markup. 

jira_admin_cu
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 Champions.
April 10, 2025

Thank you @David Fischer .It worked.

For reference for anyone in the future. 

[~${issue.assignee.key}] : Assignee

[~${issue.reporter.key}] : Reporter

jira_admin_cu
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 Champions.
May 6, 2025

Hi @David Fischer ,

I noticed today that tagging the user in the comments [~${issue.reporter.key}] , it shows proper full name for some users how we do mentioning in the comments manually, but some users its just showing below. Do you know the reason ?We have all users are same, there is no difference in the user management.

Hello [~vromanko],

Hello [~JIRAUSER49346],

David Fischer
Community Champion
May 6, 2025

Hi @jira_admin_cu ,

I'm not sure why that doesn't work. If you try typing [~vromanko] or [~JIRAUSER49346] manually in a comment (after switching out of the wysiwyg mode) does it work?

jira_admin_cu
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 Champions.
May 7, 2025

Hi @David Fischer ,

Its still showing same typing manually in wysiwyg mode also.

David Fischer
Community Champion
May 8, 2025

You need to type it in Text (Wiki markup) mode and then switch to Wysiwyg to see if Jira recognized the user mention

jira_admin_cu
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 Champions.
May 9, 2025

Hi @David Fischer 

In Visual mode, it shows the full name , while in Text Mode, it displays the full email ID as our user accounts are configured.

However, in the automatic comment tagging, it appears in Text Mode without the email.