It is possible to mention multiple users from the Multiple User Picker field in a comment for Jira Data Center.
@Alex Koxaras _Relational_ thanx for reply.
Iam getting users list by using loop, but we need to add '~' before every username.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@TN Raju with JMWE I've inserted during a transition the "Add Comment" post function and entered the following code:
def users = issue.get("customfield_17251")
def commentString=""
for (user in users){
commentString += "[~" + user.username.toString() + "] "
}
commentString + "this is a comment"
The customfield_17251 is my multiuser picker field. So replace this with your CF and adjust the final line to your liking:
Let me know if that works our for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This works for Cloud, not sure about DC
This would work using the JMWE Comment Issue Post Function, replace the X's with your custom field ID. This @ mentions each user in a multi user field on a separate line.
{% for user in issue.fields.customfield_XXXXX %}
[~{{ user.accountId }}]
{% endfor %}
The following does the same but keeps all mentions on the same line
{% for user in issue.fields.customfield_XXXXX %}[~{{ user.accountId }}]{% endfor %}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.