Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
themeConfluence
firstline1
titleCreate eazyBI custom fields
linenumberstrue
[jira.customfield_ttsSlaStatusCf]
data_type = "string"
name = "TTS eazyBI SLA status custom field"
javascript_code = '''
if(issue.fields.customfield_11500){
var jsonObject = JSON.parse(issue.fields.customfield_11500);
var slaStatusArray = [];
jsonObject.forEach(function(value) {
if(value.slaStatus !== null){
   newSlaArrayslaStatusArray.push(value.slaName +":"+ value.slaStatus);
}
});
 issue.fields.customfield_ttsSlaStatusCf = slaStatusArray;
}
'''

...

Code Block
languagejs
themeConfluence
firstline1
linenumberstrue
[jira.customfield_ttsSlaStartDateCf]
data_type = "string"
dimension = true
name = "TTS eazyBI SLA start date custom field"
javascript_code = '''
if(issue.fields.customfield_11500){
var jsonObject = JSON.parse(issue.fields.customfield_11500);
var startDateArray = [];
jsonObject.forEach(function(value) {
if(value.startDate !== null){
   newSlaArrayslaStatusArray.push(value.slaName +":"+ value.startDate);
}
});
 issue.fields.customfield_ttsSlaStartDateCf = newSlaArray;
}
'''

...