Hi Experts,
I have created some user properties in my plugin but I want to show those user properties on the user profile hover. Is there any way to the customize User profile hover info?
Hi Experts,
I have created some user properties in my plugin but I want to show those user properties on the user profile hover. Is there any way to the customize User profile hover info?
This is a hack I used on my internal instance, not part of a plugin. I override the initCallback function which is part of the Javascript Inline Dialog API - Inline Dialog (deprecated) - AUI Documentation.
This is not ‘polite’ but perhaps it can get you on the right direction -
JIRA.userhover.INLINE_DIALOG_OPTIONS.initCallback = function(){
var dialog = AJS.$('#inline-dialog-' + this.id);
var username = dialog.find('#avatar-full-name-link').attr('title');
AJS.$.ajax({
"url":"https://jira-test.acme.corp/rest/api/2/user/properties/com.acme.jira.services:user-properties?username=" + username
}).done(function(data){
AJS.$('#user-hover-email').before('<strong>' + data['value']['location'] + '</strong>');
});
}
Hey @dchouksey89,
not exactly what you are looking for but might be still of some interest.
I have implemented a plugin which allows me to call a user when hovering 
I did this by adding a custom web-item to the jira web-section 'system.user.hover.links’
and then binding my functionality to the web-item
You can read more about webitems here: Link to developer.atlassian.com about webitems
hi @felix.lahmer i also tried same fuctionality, i refer page
https://developer.atlassian.com/server/jira/platform/general-navigation-ui-locations/
They not given complete web-item code for hover. can you please help on this.
Thanks,
Hi, @felix.lahmer:
How do you pass user name to your functionality(REST Endpoints)?
Finally, I found the answer. Thanks.
/rest/scriptrunner/latest/custom/showDialog?name=${profileUser}