User format module not working Edited

When I create user format plugin module I get exception in look and feel section. This can by fixxed by calling 


UserFormatTypeConfiguration userFormatTypeConfiguration = ComponentAccessor.getComponent(UserFormatTypeConfiguration.class);
userFormatTypeConfiguration.setUserFormatKeyForType("fullName", "jira.user.format:full-name-user-format");

however this doesnt realy fix the problem beacous when i chose my user format nothing change. Also there are now calls to my format functions. 

My question is how can I change usserFormatter or where is it stored. Also is there some specific requirments for user format module? 

Ultimetly I want to add second icon to user and make this icon a link to some JavaScript fuction.


I made my plugin work and rendered user in isuee listview in the way I wanted. However that was not really what I needed. I now know that i must edit .vm templateis in core jira but I have no Idea where to find ones reposible for rendering assignee and reporter in an issue.   


1 answer

1 vote

Not sure where you added this code. And it is not needed. When you write a User Format Plugin module, you need to implement the UserFormat interface, implement the required methods and write the velocity templates. 

Once that is done, using the new profile depends on where you want to use them. For example, the assignee column in the issue navigator uses the assignee-columnview.vm file. You can also call the new profile from other plugins.

There is a recipe in the JIRA Development Cookbook discusing about the same in Chapter 11.

Thanks this helped a lot epecialy JIRA Development Cookbook was very usefull just one more question. Do I have to edit the vm fiels in jira by hand? Or is there some way for the plugin to do this for me. As I said I need to change rendering of all user mentions. Does this mean I have to edit all vm user files?

I am afraid you will have to modify the system templates if you want to change the behavior of the existing user fields. 

Are there any open source UserFormat implementations that work?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 09, 2018 in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

255 views 6 0
Join discussion

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