- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2017 06:06 AM
Hi All,
I used this below code for adding note in comment field but "\n" is not giving new line in comment field.
Please let me know any issue in this script
var comments_ritm = " This case has been created from "+number;
var comments = current.comments.getJournalEntry(-1);
ca.comments = comments_ritm+"\n\n"+comments;
Thanks,
Neethu
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2017 01:12 AM
The issue got fixed by using following script
var number= gs.getMessage(["[code]<a href =sc_req_item.do?sys_id="+ current.sys_id +">"+ current.number +"</a><p>[code]"]);
var comments_ritm = " This case has been created from "+number;
var comments = current.comments.getHTMLValue();
ca.comments = comments_ritm+comments;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2017 12:37 AM
I believe the issue is with Code tag ,if i remove that it will show the work notes with \n.But it required as the RITM number should be updated as hyperlink
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2017 01:12 AM
The issue got fixed by using following script
var number= gs.getMessage(["[code]<a href =sc_req_item.do?sys_id="+ current.sys_id +">"+ current.number +"</a><p>[code]"]);
var comments_ritm = " This case has been created from "+number;
var comments = current.comments.getHTMLValue();
ca.comments = comments_ritm+comments;