Worklog comment import

Hi @rohit

I just updated our documentation page.
Try this code in your advanced settings:

[jira.customfield_wlcomment]
name = "Worklog Comment"
data_type = "string"
dimension = true
worklog = true
javascript_code = '''
if (worklog.comment) {
worklog.customfield_wlcomment = worklog.comment;
}
else {
  worklog.customfield_wlcomment = "(no comment)"
}
'''

Since this field is already imported as dimension, I recommend unselecting it once for import and import data without it to reset advanced settings. Then it is safe to import data with field selected again.

Martins / eazyBI support

2 Likes