Hello
I need help. I have add dynamically field in details section in ViewProfile.
I am try for this
https://developer.atlassian.com/server/jira/platform/user-profile/
and
But my cod is not work.
atlassian-plugin.xml:
<web-panel key="custom-user-details" location="webpanels.user.profile.summary.details" weight="200">
<resource name="view" type="velocity" location="velocity/details-profile.vm" />
<label key="company-custom-user-details.label">Custom User Details</label>
<context-provider class="com.company.profile.DetailsProfilePanel" />
</web-panel>
</
DetailsProfilePanel.java
@Scanned
public class DetailsProfilePanel extends AbstractJiraContextProvider {
@ComponentImport
private final UserManager userManager;
@Inject
public DetailsProfilePanel(UserManager userManager)
{
super();
this.userManager = userManager;
}
@Override
public Map getContextMap(ApplicationUser applicationUser, JiraHelper jiraHelper) {
return null;
}
}
What I do wrong or how do I implement custom fields in the detail profile?