Inherit text field dimension

I am trying to create a dimension that inherits data from a parent custom field that is a textfield. I am following the instructions found on these two pages:

Inherit the value: JavaScript calculated custom fields

Convert from text to string: Custom field import options

Unfortunately the field is not populating with any data. Is this a valid approach?

Here’s my configuration.

Thanks!

Hi @bgorbet

eazyBI won’t let you import “data_type = text” together with “dimension = true” for the field.
I would recommend changing the data type to “string” for the Inherited PI field and import the field also as a dimension, then the parent field can remain text.

Also, you would need to change the Javascript code of your definition to a similar one:

if(issue.fields.customfield_19101) {
   issue.fields.customfield_inherited_pi = issue.fields.customfield_19101;
}

Martins / eazyBI support

Thank you! This solved my problem :slight_smile: