Need to redirect into knowledge article.

SandeshR5514624
Tera Contributor

Hello Community,
In cmdb_ci table need to crate a xyz name link ( In related links) which redirect to specific knowledge article which is published in prod.
Please guide me how to create a related link (UI action) on cmdb_ci table in details.

Cheers,
Sandesh

1 REPLY 1

haseena ayesha
Giga Guru

Hi Sandesh,

Hope you are doing well.

Please try this one:

Solution:

You can achieve this by creating a UI Action on the 'cmdb_ci table and configuring it to appear as a Related Link.

Steps:

  1. Navigate to System Definition → UI Actions and create a new record
  2. Set the fields as:
    • Table: cmdb_ci
    • Check Form context menu (to show under Related Links)
  3. In the script section, use:

Script as : 

action.setRedirectURL('/kb_view.do?sysparm_article=KB0012345');

Replace with your KB article number.

Alternatively, using sys_id:

Script as:

action.setRedirectURL('/kb_view.do?sys_id=YOUR_KB_SYS_ID');

  1. Save and test on any CI record.

Optional:
If you want dynamic behavior, create a reference field to kb_knowledge and use it in the script to redirect dynamically.

If each CI should open a different KB article:

Step 1: Add field to cmdb_ci

u_kb_article (Reference → kb_knowledge)

Step 2: Update Script

JavaScript

if (current.u_kb_article) {

action.setRedirectURL('/kb_view.do?sys_id=' + current.u_kb_article);

} else {

gs.addInfoMessage('No Knowledge Article linked to this CI');

}

 

Hope this helps! If it answers your question, please consider marking it as Helpful or accepting it as a solution.
Thank you!