Available: | JIRA 5.2.1 and later |
A user profile plugin module defines the content displayed in the 'Details', 'Preferences' and 'Assigned Open Issues per Project' panels on the User Profile screen in JIRA. You can also define custom web panels to be displayed in the same column. Note, you cannot modify the Activity Stream nor add any web panels to the column that it is in.
The 'Details', 'Preferences' and 'Assigned Open Issues per Project' sections on the User Profile page are implemented as standard web panels. The defaults for these web panels are shown below.
To override the default web panels, you need to do two things:
Default 'Details' web panel:
1 2<web-panel key="custom-user-details" location="webpanels.user.profile.summary.details" weight="100"> <resource name="view" type="velocity" location="view/details-profile.vm"/> <context-provider class="com.atlassian.jira.plugins.userprofile.DetailsUserProfilePanel"/> </web-panel>
Default 'Preferences' web panel:
1 2<web-panel key="custom-user-prefs" location="webpanels.user.profile.summary.preferences" weight="200"> <resource name="view" type="velocity" location="view/preferences-profile.vm"/> <context-provider class="com.atlassian.jira.plugins.userprofile.PreferencesUserUserProfilePanel"/> <condition class="com.atlassian.jira.plugins.userprofile.conditions.ProfileUserEqualsCurrentUser" /> </web-panel>
Default 'Assigned Open Issues per Project' web panel:
1 2<web-panel key="custom-user-assigned" location="webpanels.user.profile.summary.assigned" weight="300"> <resource name="view" type="velocity" location="view/assigned-and-open.vm"/> <context-provider class="com.atlassian.jira.plugins.userprofile.AssignedAndOpenUserProfilePanel"/> <condition class="com.atlassian.jira.plugins.userprofile.conditions.UserCanBrowseProfileUserProjects" /> </web-panel>
To add a custom web panel, do the following:
Example custom web panel for User Profile page:
1 2<web-panel key="custom-profile-panel" location="webpanels.user.profile.summary.custom" weight="150"> <resource name="view" type="velocity" location="templates/webpanel/custom2.vm"></resource> </web-panel>
Rate this page: