Is there a way to view the Knowledge article linked to a CI in the Configuration Item record? I want to see the" Knowledge article " column in incident related tab/

sowmyab
Giga Contributor

Hi,

Is there a way to view the Knowledge article linked to a CI in the Configuration Item record? I want to see the" Knowledge article " column in   incident   related tab?

Please refer the attached screenshots.( I want like - Refer Screenshot:"knowledge article-Incident tab" )      

I'm unable to find the "knowledge article" option in List layout.( Refer - "List Layout -CI" screenshot)

Thanks,

Sowmya

9 REPLIES 9

anurag92
Kilo Sage

Hi Sowmyab,



So your requirement is to display the Knowledge article (from 2nd screenshot) on CI form or in the Incident list?


sowmyab
Giga Contributor

Yes exactly..


But CI and Incident has a 1-to-many relationship, so configuring Knowledge field from Incident on CI form is not possible directly. You might need to create a new field called Knowledge Article and then update it through a script.


dvp
Mega Sage
Mega Sage

Knowledge articles are related to configuration items using m2m_kb_ci table



Here is the custom relationship you can define using


System Definition > Relationships



find_real_file.png


and in query with use the below script



(function refineQuery(current, parent) {


// Add your code here, such as current.addQuery(field, value);


current.addQuery('cmdb_ci', parent.sys_id);
current.addQuery('kb_knowledge.workflow_state', '!=', 'retired');
current.addQuery('kb_knowledge.u_approval', '!=', 'Rejected');


})(current, parent);