Hi Team,
My code is working in the cloud environment.
Actually, "Share with Customer" & Internal Comments to be separated and to be mapped with Additional Comments & worknotes in SNOW.
Please Help.
My Code working in Cloud environment.
PFB :
var isComment = issueJson.fields.comment.comments[issueJson.fields.comment.comments.length - 1].jsdPublic;
var comm = issueJson.fields.comment.comments[issueJson.fields.comment.comments.length - 1].body.content[0].content[0].text.toString();
if (grInc.comments.getJournalEntry(-1).toString().split('\n')[1].trim() != comm && isComment)
grInc.comments = comm; //(External Comments Mapping)
else if (grInc.work_notes.getJournalEntry(-1).toString().split('\n')[1].trim() != comm && !isComment) {
grInc.work_notes = comm; //(Internal comments Mapping)
Please help on this and do needful favour..
Thanks
SRI