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.
Community moderators have prevented the ability to post new answers.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.