Creating Custom Metadata Records to Support Jira Custom Fields
The following example contains the necessary steps for creating new custom metadata records to define objects for custom fields in Jira.
Once you have created a custom field in Jira, we recommend that you create custom metadata type records to define objects for custom fields in Jira.
- In Setup, click Custom Code | Custom Metadata Types.
- Next to PSA to Jira Issue Field, click Manage Records. A list of existing mappings is displayed.
- Click New. The new custom record page displays to create a custom field.
- Next to Label. Enter one of the following:
- Fields-Industry when the field type is TextArea and Single PickList.
- Multipick when the field type is MultiPicklist.
Once you move to the next field, the PSA to Jira Issue Field Name automatically populates.
- Next to Label. Enter one of the following:
- Next to Jira Field ID. Enter one of the following:
- For Fields-Industry, enter customfield_10110.
- For Multipick, enter customfield_10909.
- Next to Jira Field Name.
- For Fields-Industry, enter Industry.
- For Multipick, enter MultiPicklist.
- Next to Owning Type. For example, enter fields.
- Next to Jira Datatype. For example, enter one of the following:
- customfield_10110 when the field type is TextArea and Single PickList.
- customfield_10909.arrayFirst when the field type is MultiPicklist.
- Select the Is Available for Mapping checkbox to make the field available for mapping.
- Select the Override Field Mapping checkbox to allow users to override the mapping for this field. By default, it is selected.
- Click Save. The new custom metadata record mapping field is now created.
- Create a new custom record for a field that contains custom values such as drop-downs.
- Next to Label. For example, enter one of the following:
- Industry - Value when the field type is TextArea and Single PickList
- Multipick_value when the field type is MultiPicklist.
- Once you move to the next field, the PSA to Jira Issue Field Name automatically populates.
- Next to Jira Field ID. For example, enter value.
- Next to Jira Field Name. For example, enter one of the following:
- Value when the field type is TextArea and Single PickList
- Multipick_value when the field type is MultiPicklist.
- Next to Owning Type. For example, enter one of the following:
- Industry when the field type is TextArea and Single PickList
- customfield_10909.arrayFirst when the field type is MultiPicklist.
- Next to Jira Datatype. For example, enter string.
- Select the Is Available for Mapping checkbox to make the field available for mapping.
- Select the Override Field Mapping checkbox to allow users to override the mapping for this field. By default, it is selected.
- Next to Label. For example, enter one of the following:
- Click Save. The new custom metadata record mapping is now created.
To support the complex differences between field values in PSA and Jira or vice-versa, the integration transforms the values from one application before syncing them with the other. If the field values are different, you must create a data transformation table.
Jira to PSA
|
Jira Issue - Industry Value |
PSA Project Task - Industry Value |
|---|---|
| Primary | First |
| Secondary | Second |
| Tertiary | Third |
PSA to Jira
|
PSA Project Task - Industry Value |
Jira Issue - Industry Value |
|---|---|
| First | Primary |
| Second | Secondary |
| Third | Tertiary |
For more information, see Creating a Data Transformation Table in the Foundations Help.
Note that PSA to Jira or vice-versa values will differ between different projects, depending on the values are defined. The integration comes with a predefined set of mappings. We recommend that you customize the predefined mappings to avoid errors when syncing from one system to the other. To create a new mapping from Jira to PSA or vice-versa, see Creating a New Mapping.
For more information on the predefined mappings, see Customizing PSA Direct for Jira Field Mappings.
Depending on how you set up the PSA Direct for Jira, your PSA projects might be synchronized to Jira projects or vice-versa. When creating a Jira Issue, you must manually add the Jira custom field to Jira project and Jira project screens. Select the Jira custom field value, depending on the type of custom field you want to create. For example, select "primary."
The integration automatically creates a PSA project task for the Jira issue or vice-versa. Once the synchronization finishes, the Jira custom field populates with the value of the issue in Jira. For more information, see Synchronizing PSA Information to Jira .