when a problem is created change related incident state to onhold and onhold reason is awaiting call
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2025 01:47 AM
when a problem is created change related incident state to onhold and onhold reason is awaiting call.
Table:Problem
when to run: After Update
Script:
var gr = new GlideRecord('incident');
gr.addQuery('problem_id', current.sys_id);
gr.query();
if (gr.next()) {
current.state = 3;
current.hold_reason = 1;
}
I have tried this code,But It is not executing as expected,After creating problem record on related incident form it is showing state as onhold and on hold reason is awaiting problem.
I have tried this code,But It is not executing as expected,After creating problem record on related incident form it is showing state as onhold and on hold reason is awaiting problem.
0 REPLIES 0