Change parent of child article
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 05:42 AM
Hi there,
I have a requirement where parent field in child kb article should be updated with the latest version of parent article if parent kb article version is changed.
Can anyone help me here how this can be implemented.
Thanks,
Gopal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 07:35 AM
Hi @Gopal6 ,
You can have a business rule in place, where you can update knowledge article's parent field, whenever a parent knowledge is updated.
Create an After update business rule on the knowledge table
var parentKB = new GlideRecord("kb_knowledge");
parentKB.addQuery("parent", current.getValue("base_version"));
parentKB.query();
while (parentKB.next()) {
parentKB.setValue("parent", current.getUniqueValue());
parentKB.update();
}
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2022 12:14 AM
Hi Aman,
Thanks for the reply. I have tried this but it is not working.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2022 05:05 AM
Can you share what have you mentioned in the when to run tab?
Also, set the condition as version changes
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2022 06:15 AM
Hi Aman,