User Format (Look and Feel)

Hello,

i am programming a User Format Plugin and compilation works fine. Also after uploading the plugin to JIRA (Server) no exception/error is thrown. But i am not able to change the user format because the section doesnt exists in look and feel (but it should as described here: https://developer.atlassian.com/display/JIRADEV/User+Format+Plugin+Module)

I am using JIRA v6.2.


My code is for testing purpose mainly the same as in the tutorial above. I only changed this bit of code: (EasyMap and User are deprecated)

private Map<String, Object> getInitialParams( final String username, final String id ) {
        final ApplicationUser user = this.userUtil.getUserByName( username );
        final UserFormatter userFormatter = this.userFormatManager.formatter( FullNameUserFormat.TYPE );
        final String fullName = userFormatter.formatUsername( user.getName(), id );
        return new HashMap<String, Object>() {
            private static final long serialVersionUID = 1L;
            {
                put( "username", username ); //$NON-NLS-1$
                put( "user", user ); //$NON-NLS-1$
                put( "fullname", fullName ); //$NON-NLS-1$
                put( "id", id ); //$NON-NLS-1$
            }
        };
    }

(And of course atlassian-plugin.xml is also modified to work right)

Is the User Format Option in JIRA v6>(v6.2?) removed? Is it just visible if there is another valid User Format Plugin? And if so, why the code of the tutorial does not work?

Any Help is welcome!!

Thanks for your attention.

2 answers

I stumbled upon the same problem. It seems like it's also not present in 5.2.11, so maybe this fucntion was removed after version 4?

I had much the same problem as you. What realy helped me to undertand was Jira development cookbook but the truth is user format plugin doesnt work quite the way you would expect(allowing you to change the way users are displayed in Jira) for more information I can refer you to my question.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 4 hours ago in United States

Administrators Cleanup

Good morning, After a long weekend cleaning up, I am still in the cleanup mode 😊. I am curious to know: When do you feel the urgency to cleanup your Atlassian Tools? How many times do y...

8 views 0 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you