Business rule to copy Description in Incident task table from description in incident table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2022 11:18 PM
Need a business rule so that short Description in Incident(parent) is copied to short description in Incident Task(child), when a Incident task is created.
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2022 11:22 PM
Hi,
Do you know that you can create a Flow that does the same, and doesn't require a single line of code?
Example:
Also, please avoid creating duplicate questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2022 06:28 AM
Hi OlaN,
I am very keen in getting this flow work. I have created exactly the same and when I create Incident task, short description is not copied to task? IS there any thing missing? Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2022 01:14 AM
Hard to tell without any details.
Can you share what you have created, then I might be able to help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2022 11:44 PM
Hi Dilip kumar,
you can write before business rule on Incident task table with insert or update condition.
the code for your requirement is :
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var gr = new GlideRecord("incident");
gr.addQuery("sys_id",current.incident);
gr.query();
while(gr.next()){
current.description = gr.description;
}
})(current, previous);