- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2022 03:10 PM
this short description we have to set it in problem statement field.
Solved! Go to Solution.
- Labels:
-
Customer Service Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2022 03:25 PM
Hi John,
Business rule running on the problem table:
Advanced tab script:
(function executeRule(current, previous /*null when async*/) {
var problemShortDescription = current.short_description;
var incidentShortDescription = '';
var incidentGR = new GlideRecord('incident');
incidentGR.addQuery('description', problemShortDescription);
incidentGR.query();
if(incidentGR.next()){
incidentShortDescription = incidentGR.short_description;
}
current.problem_state = incidentShortDescription;
})(current, previous);
Edit: This script may need to be updated, if it doesn't work as intended, please outline your requirement again as it's quite unclear
Please mark answer as helpful/correct based on impact

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2022 03:18 PM
Hi John,
You should be able to build this flow via flow designer. https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/flow-designer/concept/fl...
Let me know if you hit a roadblock.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2022 03:25 PM
Hi John,
Business rule running on the problem table:
Advanced tab script:
(function executeRule(current, previous /*null when async*/) {
var problemShortDescription = current.short_description;
var incidentShortDescription = '';
var incidentGR = new GlideRecord('incident');
incidentGR.addQuery('description', problemShortDescription);
incidentGR.query();
if(incidentGR.next()){
incidentShortDescription = incidentGR.short_description;
}
current.problem_state = incidentShortDescription;
})(current, previous);
Edit: This script may need to be updated, if it doesn't work as intended, please outline your requirement again as it's quite unclear
Please mark answer as helpful/correct based on impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2022 05:03 PM
Thanks