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.

EDIT 

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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

81 views 1 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