Custom JavaScript code

JavaScript code should be ES5 compliant, ES6 syntax is not supported.

You can use custom JavaScript code to modify received issue JSON object before importing issue into eazyBI. Click Add custom JavaScript code to show the code editor.

You can use issue variable to access received Jira REST API issue JSON object properties and modify or add additional properties. Please open JIRA_BASE_URL/rest/api/latest/issue/PPP-NNN?expand=changelog in your browser (where PPP-NNN is issue key) to see sample issue JSON.

Here is example of JavaScript code which will clear issue summary property if reporter email address contains

if (issue.fields.reporter && issue.fields.reporter.emailAddress.indexOf("") > 0) {
  issue.fields.summary = "";

If you would like to skip some data rows and do not import them in eazyBI then use return false; in these cases.

Please contact eazyBI support if you need help to write custom JavaScript code for your specific needs.