Worklog comment import

Hello,

I want worklog comment in my report, how can i get it.
I tried below link, but it is giving only the first word of the worklog comment:
https://docs.eazybi.com/eazybijira/data-import/custom-fields/javascript-calculated-custom-fields#JavaScriptcalculatedcustomfields-Calculatedworklogcustomfield

Could you please help

2 Likes

I’m having the same issue. If you solved this outside of the forum, please update with the solution. @martins.vanags do you have a modified script for this?

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

1 Like

@Larry_Lowe

Please check my last answer to @rohit

Martins / eazyBI support