Hi,
We are trying to develop a hierarchy in EazyBi based on parent links, however we cannot get it working. When we run the last query in EazyBI no hierarchy is developed (based on no hierachies when applying issue type dimension). Hope that you can help.
We have the below hierachies in JIRA connected via parent links:
SAFe epic (portfolio)
SAFe capability (large solution)
SAFe feature (porgram)
Story
We have done it via the two steps mentioned in EazyBI documentation - https://docs.eazybi.com/display/EAZYBIJIRA/Additional+Issue+hierarchies:
1. Created custom field in JIRA
Created a custom field in JIRA with the name âInitiativeâ and under description we have included below query (Instead of NNNNN we have included the issue ID for parent link (17003) which we found as the last digit in the browser link when clicking on parent link in custome fields in JIRA).
if (issue.get(âcustomfield_17003â) != null) {
return issue.get(âcustomfield_17003â).getKey();
}
else {
return ââ;
}
â>
2. Added custom field definition and hierachy difinition to advanced settings in EazyBI
27700 is referring to the last digits in the browser line when cliking on the initative customfield in JIRA and then we included the name of the levels.
We are assuming that the problems lies in the statements with âkeyâ. We have just written âkeyâ, but perhaps a value should be included here instead?
#Precalculated custom field with Parent link key or Jira Portfolio Parent link field
[jira.customfield_27700]
data_type = âstringâ
check_calculated_value = true
update_from_issue_key = âSAFe EPIC (Portfolio)_keyâ
[[jira.issue_hierarchies]]
name = âInitiativeâ
all_member_name = âAll Issues by Initiativeâ
levels = [
{name=âInitiativeâ,key_column=âcustomfield_27700â,issue_type=âInitiativeâ},
{name=âSAFe EPIC (Portfolio)â,key_column=âSAFe EPIC (Portfolio)_keyâ},
{name=âSAFe Capability (Large Solution)â,key_column=âSAFe Capability (Large Solution)_keyâ},
{name=âSAFe Feature (Program)â,key_column=âSAFe Feature (Program)_keyâ},
{name=âStoryâ,key_column=âStory_keyâ}
]
Also tried below query instead, also without any luck:
#Precalculated custom field with Parent link key or Jira Portfolio Parent link field
[jira.customfield_27700]
data_type = âstringâ
check_calculated_value = true
update_from_issue_key = âepic_keyâ
[[jira.issue_hierarchies]]
name = âInitiativeâ
all_member_name = âAll Issues by Initiativeâ
levels = [
{name=âInitiativeâ,key_column=âcustomfield_27700â,issue_type=âInitiativeâ},
{name=âEpicâ,key_column=âepic_keyâ},
{name=âParentâ,key_column=âepic_parent_keyâ},
{name=âSub-taskâ,key_column=âsubtask_keyâ}
]
Hope you can help.
Br. Karoline
strong text