What happens to a translation of an article if the parent is retired?

Andrea Elms
Kilo Guru

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

1 ACCEPTED SOLUTION

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();
        }

Regards
Harish

View solution in original post

5 REPLIES 5

Harish KM
Kilo Patron
Kilo Patron

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

Regards
Harish

Thanks for that, do you also happen to know how the translations should be retired?

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();
        }

Regards
Harish

Community Alums
Not applicable

Hi @Andrea Elms ,

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