Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Want to display custom field like Assignee

Suresh Basina May 10, 2016

Hi All,

I have created custom field of UserCFType and is populating the value of user.

For example, if the user name is admin and the role is admin then it is displaying  like "admin(admin)".

Please see the below image for reference.

test.png

I just want to display the value for my custom field like Assignee (with avator) in the above image.

How should I change.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 11, 2016

In your vm file, you should add something like below. Code may need some modification

<span class="aui-avatar aui-avatar-small">
    		<div class="aui-avatar-inner">
    			<a class="user-hover" rel="$value.name" id="user_cf_$value.name" href="/jira/secure/ViewProfile.jspa?name=$value.name">
    				<img src="$avatarService.getAvatarURL($value, $value)" />
    			</a>
    		</div>
    	</span>
    	<span class="tinylink">$userformat.formatUserkey($value.key, 'profileLink', "user_cf")</span>
Suresh Basina May 11, 2016

Hi Tuncay, thanks for your reply. I want to add the suggestions when user try to edit the user name beside the avatar. i.e. when we type 'a' it should display the users whose names starting with 'a'.

 

Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 11, 2016

Then you need to add some ajax stuff. Actually, I can't code right now but as far as I know these are the steps you should do

  • Implement a REST service to filter those users
  • In the client side, call this REST service and update the field accordingly.

 

Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 11, 2016

Then you need to add some ajax stuff. Actually, I can't code right now but as far as I know these are the steps you should do

  • Implement a REST service to filter those users
  • In the client side, call this REST service via AJAX and update the field accordingly
TAGS
AUG Leaders

Atlassian Community Events