Hi Pujitha,
in order to do that you can add the following javascript on the JIRA Announcement banner :
<script>
jQuery().ready(function() {
//LOGGED USERS SCRIPTS
if(jQuery(".login-link").size()==0){
//Display logged user
var userDisplayName = jQuery("#header-details-user-fullname").attr("data-displayname");
jQuery(".aui-header-secondary").children().prepend("<li><a id=\"user-item\" class=\"aui-nav-link\" title=\"logged user\" href=\"/secure/ViewProfile.jspa\">"+userDisplayName+"</a></li>");
}
});
</script>
If you use a specific jira context, please, add it to href. For example if your context is "jira", href should be ... href=\"/jira/secure/ViewProfile.jspa\">
Hope this helps.
Fabio
Hi Thanks for athe answer :)
But I want the name to be displayed when service desk project users are logged in to raise a request.
The following script allowed me to display my name in my admin account, but how about to all the user accounts.
Regards,
Pujitha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry Pujitha, I missed the context.
In order to do that, you need to implement a plugin for JSD with web-resource module, and set the context to <context>customerportal</context>. The javascript should be similar to that provided.
CIao,
fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.