Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add dynamically field in details section in ViewProfile

Maxim Olishevsky February 14, 2018

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 

https://developer.atlassian.com/server/jira/platform/web-panel/#id-_ContentforWebPanelPluginModule-contextElements

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?

 

EditProfile.png ViewProfile.png

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events