Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Developers will be able to access a service from velocity templates to access UPP data.
The item is called uppVelocityApi from within Velocity.

getProperty(user, profileElementName): This method returns the value of the given profile element for the given user. It accepts the following parameters:

  • user: The user to retrieve the value for. Type: com.atlassian.user.User
  • profileElementName: Default name of the profile element, typically the English name. Type: String
  • Field names are not unique. This method will return the value of the first found field with the name, which is visible (i.e. not hidden). To determine the first field, the order as defined at the administration is used.

Usage

#set( $user = $userAccessor.getUser("userWithProfileElement") )
#set($profileElementName = "Mobile Phone" )
##set($mobileNumber = $uppVelocityApi.getProperty($user, $profileElementName) )




  • No labels