how to mention username within jelly comment

I am commenting on a ticket via Jelly and want to address the assignee/reporter at start. How can I achieve it?

I tried various OPTIONS in comment

<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib">
<jira:AddComment comment=" OPTIONS : Issue comment" issue-key="ABC-1" />
</JiraJelly>


OPTIONS i tried

  1. ${issue.getAssigneeUser().getDisplayName()}
  2. ${issue.assignee}
  3. Even ${user.getFullName()}

But nothing worked.

it comments only : Issue comment

2 answers

It is something similar I am looking for as atlassian emailing users on auto freezing or closing

Hi USERNAME,

...

...

...

i think you need to hot code the user name, try with this

<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib">
<jira:AddComment comment="Issue comment" issue-key="ABC-1" commenter="prasad" />
</JiraJelly>

Sorry bu you got me wrong.. I am trying to add the name of reporter or assignee to the comment automatically via Jelly.

e.g. When you receive any comment about the open support ticket from Atlassian robot, your name is addressed in that comment. If any one know how they are achieving it?

i don't think it is possible!!!

you have to pass user name!

If atlassian is achieving it then it is possible

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

100 views 0 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you