Wiki
Clone wikiUser Custom Fields Add-on / Home
Project Team for Jira Cloud
On this page:
- Project Team for Jira Cloud
- What this app does?
- Adding user custom fields
- Configuring edit permissions
- Viewing and editing the user custom field values on the Advanced Profile page
- Displaying Org Charts
- Visualizing the Project Team
- Displaying the Project Team on Jira dashboards
- REST API
- Migrating app data from Connect to Forge
What this app does?
Project Team for Jira Cloud is an app for Jira Cloud that allows extending the profiles by adding custom attributes like Phone Number, Bio or Skills. Once defined, the custom fields become visible on an Advanced Profile page for each user and in the issue screen from Jira.
The Jira issue screen displays the advanced attributes of the issue's reporter and assignee.
Also, this app makes visible the team of the project by displaying its members and their roles in a tab named “Project Team” added to the project dashboard. From this page you can access the Advanced Profile page of each user for visualizing and editing their custom fields.
With this app you also can generate and display org charts based on your Jira users and their hierarchical relationships. The org charts are automatically generated based on those custom fields (and their values) that indicate the hierarchical relationship between the Jira users.
Adding user custom fields
The Jira administrators can add, edit or delete the user custom fields on the Profile Custom Fields page located in Jira Settings area under Apps > PROJECT TEAM section.
Adding a user custom field
To add a new user custom field:
- Log on as a Jira admin
- Navigate to Jira Settings > Apps > PROJECT TEAM > Profile Custom Fields page
- Click the Add Custom Field button
- Select the Type of the new field
- Enter a Name for the new custom field
- Optionally, type a Description
- If you choose to add a Multi Line Text field, you can add one or more items that represent the possible values of the field.
- Click Save
Modifying a user custom field
To modify the attributes of a user custom field:
- Log on as a Jira admin
- Navigate to Jira Settings > Apps > PROJECT TEAM > Profile Custom Fields page
- In the table with available fields, locate the custom field that you want to modify and click its Edit icon
- Modify the field's attributes as you want
- Click Save
Deleting a user custom field
To delete a user custom field:
- Log on as a Jira admin
- Navigate to Jira Settings > Apps > PROJECT TEAM > Profile Custom Fields page
- In the table with available fields, locate the custom field that you want to modify and click its Delete icon
- If you are really sure that you want to delete the custom field, click Delete in the confirmation window
Configuring edit permissions
You can allow specific Jira users or groups to edit the custom fields of the users. For instance, a manager or your HR department. Follow thse steps to grant edit permissions to a user or group:
- Log on as a Jira admin
- Navigate to Jira Settings > Apps > PROJECT TEAM > Permissions page
- Add the group or user to the list
- Click Save
NOTE: Regardless these settings, the Jira users are allowed to edit the custom fields of their own Advanced Profile page. Also, the Jira administrators can edit the custom fields of any Jira user.
Viewing and editing the user custom field values on the Advanced Profile page
The value of the custom fields of a specific user profile can be visualized and set on the Advanced Profile page of that user.
Any Jira user can access his own Advanced Profile page by clicking the avatar icon and then clicking the Advanced profile menu-option.
The Advanced Profile page of another user can be open from the Project Team tab of the Jira project the user belongs to, by clicking the user's display name.
Or, if you are on the view issue screen and the user is the issue's reporter or assignee, you can click the Advanced Profile link from the User additional attributes area of that user.
Once you reached the field to be edited, click its edit icon and change its value as you want.
The users can set their own custom field values. Special permissions are required to set the custom field values of the other users (see "Configuring edit permissions").
Displaying Org Charts
The org charts can be displayed on your Jira dashboards by using the Org Chart gadget. For the org chart to be generated, you must have a user custom field of type User Picker representing the hierarchical relationship between your Jira users. Also, the fields must be properly set on the user's Advance Profile page. See "Adding a user custom field" above for how to add such field.
Assuming that you already have a dashboard created and at least one User Picker custom field defined and set on user Advanced Profile page, follow these steps to display the org chart:
- Go to your Jira dashboard and click Add gadget
- Search for the org chart gadget and add it
- Enter the gadgets settings as described in the table below
Setting | Description |
---|---|
Gadget Title | Choose what to display in the title bar of the gadget. |
Top-down Relationship Field | The user custom field defined in the app settings representing the hierarchical relationship between the Jira users. |
Diagram Root | Represents the Jira user that will be displayed on the top-level of the chart. In case of a company org chart, this is usually the CEO. Use the Search user and then select the user. |
Field representing the person's title | Is a user custom field of type Text defined in the app settings that usually represents the job title of the person. The value of this field will be displayed in the org chart under the user's full name. |
Limit Diagram to ? levels | Indicates the max number of levels the org chart can have. |
Show Avatar | Indicates if the user avatars will be displayed in the org chart. |
- Click Save. The org chart will be generated and displayed on your dashboard.
Visualizing the Project Team
The Project Team tab of a project displays those Jira users that have a role in that specific project.
Go to Project Settings > People and assign the users on project roles so that they can be displayed on the Project Team tab. In case you don't have the project roles created, new project roles can be added in Jira Settings > System > SECURITY > Project Roles.
Displaying the Project Team on Jira dashboards
You can also display the team of a project on your Jira dashboards by using the Project Team gadget.
Assuming that you already have a dashboard, follow these steps to display the project team on it:
- Go to your Jira dashboard and click Add gadget
- Search for the project team gadget and add it
- Enter the gadget settings as described in the table below
Setting | Description |
---|---|
Project | The Jira project for which the team will be displayed. |
Columns to display | The user attributes to be displayed in the gadget as columns. The user custom fields defined in the app can be also selected. You can change the display order of the fields by moving them up or down. |
Avatar size | The size of the avatars displayed in the gadget. |
- Click Save. The team of the selected project is now displayed on your dashboard.
REST API
Retrieving the custom fields values for the users
The value of the custom field for a specific Jira user can be retrieved programmatically by using the REST API method below.
Request URL
The request URL takes the following form:
https:/ /MY_Jira_BASE_URL/rest/api/2/user/properties/CUSTOM_FIELD_ID?userKey=USER_KEY&jsonValue=true
Replace "http:/ /MY_Jira_BASE_URL" with the base URL of your Jira server and the parameters as described below.
Parameters
You have to specify the following parameters:
Parameter | Description |
---|---|
CUSTOM_FIELD_ID | The ID of the user custom field for which you want to retrieve the value. See "Determining the ID of a custom field" below for how to determine the ID of the field. |
USER_KEY | The key (username) of the Jira user for which you want to retrieve the value. |
An example of the request URL with parameters is as follows:
https:/ /myJiraserver.atlassian.com/rest/api/2/user/properties/1499867425717?userKey=john&jsonValue=true
In this example the value of field with id "1499867425717" of the user "john" is retrieved.
A successful response
An HTTP 200 status response indicates a successful request. The following data about the matching documents is returned in json format:
{"key":"1499867425717","value":{"value":"Programmer","customFieldId":1499867425717,"userKey":"john"}}
Error Response
If the REST call fails, the service returns one of the following HTTP statuses:
HTTP Status Code | Description |
---|---|
400 | Returned if the user key or id is invalid. |
401 | Returned if the calling user is not authenticated. |
403 | Returned if the calling user does not have permission to browse the user. |
404 | Returned if the user with given key does not exist or if the specified field ID does not exists. |
Determining the ID of a custom field
To determine the ID of a user custom field:
- Open Google Chrome
- Log on as a Jira admin
- Navigate to Jira Settings > Apps > PROJECT TEAM > Profile Custom Fields page
- In the table with available fields, locate the custom field that you want to modify
- Right click on the field name and then click Inspect.
- Identify the ID of the field. The prefix "row_" is not part of the field ID, so please ignore it.
Migrating app data from Connect to Forge
Project Team has been recently ported to Forge - the Atlassian's brand-new platform for apps development on Jira and Confluence Cloud. Initially, the app was created on top of the Atlassian Connect platform, which will be deprecated in the future.
After upgrading Project Team from a Connect-based version (1.2.x) to a Forge-based version (3.x or newer), the old app data consisting in the user custom fields and edit permissions is not visible in the new app until a data migration is performed.
Follow these steps to perform the app data migration from Connect to Forge:
- Log in to Jira Cloud as an admin
- Navigate to Jira Settings > Apps > PROJECT TEAM > Migration page
- If the migration was not performed yet, click Migrate
- Check migration progess and status. In case of any errors, try once again. If the errors persit, please contact support@stonikbyte.com for assistance.
Updated