Forums

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

Can can I precede a comment with the name of the user who sent it?

Mark Kurdyla September 7, 2023

I have a custom field for comments received from a particular external source. The field is called "Issue Comments" and is a rich-text field which we want to have separate from the default comments field. 
The team that will be using this Issue Comments field is a Jira user and I believe that I should be able to use {{issue.Reporter.displayName}} as the means of identifying the user; however, with a custom comment field, I am not sure how to get the user name to precede any comment that comes through in that text box. For example:
 (Support Team Member) "Message Testing...123, blah, blah, blah) 

Is there a way to accomplish this? 
Thanks,
Mark

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.
September 7, 2023

Hi @Mark Kurdyla 

Are you trying to add the name of the user who added an entry to "Issue Comments", based on the external source user's name?  If so, are those people all Jira users, from which you could determine there name?

If the user is making the field change in Jira, you could use:

{{initiator.displayName}} for the person who made a change which triggered the rule, and then prefix that in an edit for the field.

If that would not work for you, please post images of your complete rule, showing the details of how the "Issue Comments" field is set, and include an image of the audit log details showing the rule execution.  Those may provide more context for the community to offer suggestions.  Thanks!

Kind regards,
Bill

Mark Kurdyla September 8, 2023

Thanks for the quick reply, Bill. I'll give the {{initiator.displayName}} a try and see where it goes. 

Like Bill Sheboy likes this
Jira Sandbox
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 11, 2023

It works! Thanks again Bill.

Like Bill Sheboy likes this

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