How to display Assignee Display name as part of custom field in VM template

I have custom field of type assignee, in vm template I have following code :

<td width="80%"> $issue.getCustomFieldValue($customFieldManager.getCustomFieldObject("customfield_10510"))

I get result as assignname plus extra number e.g john-10001 , but I want display name as "John Smith"

Please let me know the solution.



1 answer

0 vote

You have not got a custom field of type "assignee", I suspect you mean "user picker"? (Assignee is a system field, you can't add more)

Anyway, your code is fetching the content of a custom field. In most cases, this will be an object, which you then need to question further to get a human description instead of a best-guess representation of the object. For a user object, you usually use .getDisplayName().

In short, try


Kewl. There is some documentation on Apache Velocity's site at, but the layout of the site is awful and it's dreadful to try to find anything useful, and even then, there's no obvious examples or human-friendly guides. The closest I've found to anything readable is

It's also generalised, and most people here need more about the Atlassian stuff than velocity. My fallback there is a bit of brute force "try exposing all the context and see what's actually useful"


getDisplayName(), resolved the issue.

Also is there any proper documentation on VM templates development or list of all functions.

Please lets know. Thanks.

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
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

71 views 0 11
Read article

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