All eazyBI for Jira eazyBI for Confluence Private eazyBI

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 fields are defined in Source Data → Import options.

Internal name

all_links

Display nameAll Links
Data type

string 

Dimension

Multiple values

Split by

,

Additional advanced settings
properties_from_dimension = 'Issue'
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 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 codeKeep 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
'''