Adding custom behavior for user details
In JIRA, you can see that the user details are formatted with the full name and a link to the users' profile within the application. For example, when the issues are displayed in the issue navigator, the assignee and reporter are displayed as follows:
But what if we want to change how the user details are displayed? Say, if we want to display the user avatar alongside? Or, if we want to display their usernames with an external link, like a link to their Twitter profile?
JIRA provides the User Format plugin module to serve this purpose. Using this module, we can define different formats in which the user will be displayed and use them within the existing JIRA displays or within out-custom plugins.
Getting ready
Create a skeleton plugin using the Atlassian Plugin SDK.
How to do it...
In this recipe, let us try to create a new user profile that will display the username (instead of full name) with a link to their twitter profile to add some spice! The following...