JIRA 7.7: JIRA.userhover does not work anymore to show user profile hover

In my plugin I show a list of users and want to create the user hover, so that some user information is shown in a popup hover.

In velocity template I am using the following, which works fine

$userformat.formatUserkey($user.key, 'profileLinkActionHeader', 'projectrole_member')

In JavaScript I am using the follow, which worked as well in Jira 7.

JIRA.userhover(AJS.$('.jprt_user-hover-new'));

But now with Jira 7.7 this in no longer working. Any ideas?

Best regards
Holger

What does it render instead? I’m planning on extending this AND upgrading to 7.7 soon so that’s no good. :confused:

First I render the user name and link to the profile page using JavaScript.

var userLink = AJS.$( '<a/>' )
	.addClass('user-hover user-avatar jprt_user-hover-new jprt_user-hover')
	.text( values[i].displayName )
	.attr('href', AJS.contextPath() + '/secure/ViewProfile.jspa?name=' + values[i].key )
	.attr('rel', values[i].key)
	.prepend( 
		AJS.$('<span/>')
		.addClass('aui-avatar aui-avatar-xsmall')
		.append(
			AJS.$('<span/>')
			.addClass('aui-avatar-inner')
    			.append(
    				AJS.$('<img/>')
    				.attr('alt', values[i].key)
    				.attr('src', AJS.contextPath() + '/secure/useravatar?size=xsmall&ownerId=' + values[i].key )
        	)
	)
);

AJS.$('#' + target).append(userLink).append(' ');

Then I call the JIRA.userhover.

JIRA.userhover(AJS.$('.jprt_user-hover-new'));

But nothing is happening. No hover feature is added.

3 Likes

Any luck with this?