Applying Epic Components to all Child Tickets

Hi

Issues can inherit field value only from single select custom fields. The component is a multi-selection field, and therefore the code does not work as expected.

You can try another approach and representing component combinations as they are assigned to Epic. For example, if an epic has two components Component_A and Comonent_B, then in the dimension, it will correspond to the value “Component_A, Comonent_B”. If an epic has only one component Component_A, then in the dimension, it will correspond to the value “Component_A”.

For this solution, remove parameters multiple_values and split_by from the JavaScrit calculated custom field .

#Epic components
[jira.customfield_epiccomponents]
name = "Epic Components"
data_type = "string"
dimension = true
update_from_issue_key = "epic_key"
javascript_code = '''
issue.fields.customfield_epiccomponents = issue.fields.components;
'''

Whenever changing advanced settings for custom fields, you might want to perform double data import to ensure the correct outcome of changes (https://docs.eazybi.com/eazybijira/data-import/advanced-data-import-options/import-issue-links#Importissuelinks-Troubleshooting).

  1. In the import option, deselect custom fields “Epic Components” from data import and import data. This action will clear the previous data and data structures (even you see them as empty).
  2. Wait for data import to complete.
  3. In the import option, select the custom field “Epic Components” for data import and import data for the second time.

Best,
Zane / support@eazyBI.com