Calculating Jira Story Points based on fields at the Epic Level

Hi @adr-glz,

Yes, the code looks all right and should work. You may slightly improve the look of code by moving up the parameter update_from_issue_key leaving the JavaScript code the last parameter.

[jira.customfield_wt_inherited]
name = "Work Type Inherited"
data_type = "string"
dimension = true
update_from_issue_key = "epic_key"
javascript_code='''
if (issue.fields. customfield_12345) {
  issue.fields.customfield_wt_inherited = issue.fields.customfield_12345
}
'''

Probably it is a coincidence the custom field ID is 12345. However, please check and use the custom field “Work Type” ID as it is in your Jira.
You can see the custom field ID also in eazyBI import options when hovering the cursor over the custom field name in the tab Custom field.

Best,
Zane / support@eazyBI.com