
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2022 12:08 AM
Hello Knowledge Gurus 🙂
We had the logic implemented, that if a parent article is retired also the translations will be retired.
This disappeared now all of the sudden.
How is the OoB logic in this case?
Think it makes sense, to retire the translation with the parent and also being able to retire the translation itself, which also does not seem to work, as no retire button is available in the translation.
Am I missing out something?
Thank you,
Andrea
Solved! Go to Solution.
- Labels:
-
Knowledge Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2022 12:55 AM
Hi you can have a custom BR on Knowledge table before update
Script:
var kb = new GlideRecord('kb_knowledge');
kb.addQuery('parent',current.sys_id); // check parent sysid of all child articles
kb.query();
while(kb.next())
{
kb.workflow_state = 'retired'; // retire all child articles matching with parent
kb.update();
}
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2022 12:11 AM
Hi OOB servicenow works like the below
- An article and its translations have a parent-child relationship. Retiring a parent article does not automatically retire all its translated child articles.
Refer document here
https://docs.servicenow.com/bundle/sandiego-servicenow-platform/page/product/knowledge-management/concept/c_RetiredKnowledgeArticles.html
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2022 12:24 AM
Thanks for that, do you also happen to know how the translations should be retired?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2022 12:55 AM
Hi you can have a custom BR on Knowledge table before update
Script:
var kb = new GlideRecord('kb_knowledge');
kb.addQuery('parent',current.sys_id); // check parent sysid of all child articles
kb.query();
while(kb.next())
{
kb.workflow_state = 'retired'; // retire all child articles matching with parent
kb.update();
}
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2022 12:13 AM
Hi
OOTB translated articles work via a "parent" > "child" relationship. In that typically the English article would act as the parent article where the translations would be in the same table but act as the children articles as their "parent" field would be populated with the sys_id of the English source article.
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep