I have a Jelly script that uses the following to retrieve a User assigned to an issue:
{quote}
<core:invokestatic classname="com.atlassian.jira.component.ComponentAccessor" method="getUserUtil" var="userUtil/">
{quote}
I then use the object to get the email address and name of the user:
{quote}
${assignee.name} $
{quote}
I would also like to access some of the properties I have created - I cannot determine what method to call on the instantiated object which is : com.atlassian.crowd.embedded.ofbiz.OfBizUser
How can I access the properties for a User
com.atlassian.jira.component.ComponentAccessor.getUserPropertyManager(user).getPropertySet().getString("jira.meta.MYPROPERTYNAME"); Note the key requires the prefix "jira.meta."
Personally I feel that using our REST API for this may be simpler, you would only need to get the assignee of the issue and then query the user.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.