- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2015 03:54 AM
I have taken Problem OOB. When I type in the workaround field on the problem record does not seem to hold the data , once I have saved the record, the contents disappears - there ia an entry on the audit trail but cannot see any thing in the field.
How does the 'cascade worksround' function work - again this does not seem to do anything?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2015 07:46 AM
It's slightly different based on the field type. This code has both ways. You can just un-comment whichever one you want to use.
current.update();
workaround();
function workaround(){
var num = current.number;
var incident = new GlideRecord("incident");
incident.addQuery("problem_id", "=", current.sys_id);
incident.addQuery("incident_state", "<", 6);
incident.query();
while (incident.next()) {
//incident.comments = (num + ' ' + current.work_around.getJournalEntry(1)); //Communicate last entry from journal field
incident.comments = (num + ' ' + current.work_around); //Communicate from standard string field
incident.update();
}
gs.addInfoMessage('Workaround communicated');
action.setRedirectURL(current);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2015 08:45 AM
Hi MArk - I have sorted this thanks for your help - I was not putting the u_ in front of the user defined fields