All Links
eazyBI for Jira
Calculated field to return the list of all linked issues or (none) when an issue has no linked issues. This field can be imported as property and dimension.
The additional advanced settings properties_from_dimension = 'Issue'
allows you to access any all imported issue dimension properties for the linked issue. You can access them using function Get() in calcauted measure.
Account-specific calculated field
Account-specific calculated fields are defined in Source Data → Import options.
Settings for the new field
Internal name | all_links |
---|---|
Display name | All Links |
Data type | string |
Dimension | ✓ |
Multiple values | ✓ |
Split by |
|
Additional advanced settings | properties_from_dimension = 'Issue' |
Custom JavaScript code:
var issuelinks = new Array(); //check if issue has any link if ( issue.fields.issuelinks ) { var links = issue.fields.issuelinks; // iterate through all issue links for (var i = 0; i < links.length; i++) { var link = links[i]; //gather outward links if (link.outwardIssue) { issuelinks.push(link.outwardIssue.key); } //and gather inward links else { issuelinks.push(link.inwardIssue.key); } } //print out list of linked issue keys separated by comma return issuelinks.join(","); }
Global calculated field
Global calculated fields are defined in eazyBI advanced settings.
Here are the settings for the new field definitions. You should insert the JavaScript (the code given above) below the line // Insert here the Custom JavaScript code
. Keep the opening and closing quotation marks. '''
, do not delete them.
[jira.customfield_all_links] name = "All Links" data_type = "string" dimension = true multiple_values = true split_by = "," properties_from_dimension = 'Issue' javascript_code = ''' // Insert here the Custom JavaScript code '''