Business Rule Hyperlink to cmdb_ci item

litchick10
Tera Guru

We are in New York and I've had a request to create a hyperlink in an article to a selected configuration item using business rules.  See red box below

find_real_file.png

Field is populated by selecting a CI from a reference field (cmdb_ci) in the knowledge form and a business rule runs to update the published article value. 

find_real_file.png

I'm not sure how to obtain the CI location and create the hyperlink. Thanks in advance for any help. 

1 ACCEPTED SOLUTION

Thanks one last question, if you wanted to specify not just a CMDB record but which view of that record to open is there a way to add on to the code to specify the view?

View solution in original post

9 REPLIES 9

litchick10
Tera Guru

Thank you this worked!

If my response worked, could you please mark my response as correct?


Please mark this response as correct or helpful if it assisted you with your question.

Thanks one last question, if you wanted to specify not just a CMDB record but which view of that record to open is there a way to add on to the code to specify the view?

Yes. You can try

var ciurl = gs.getProperty('glide.servlet.uri')+'cmdb_ci.do?sys_id='+current.getValue('u_ciname')+'&sysparm_view=<view name>';


Please mark this response as correct or helpful if it assisted you with your question.

Please mark my response correct if it worked for you.


Please mark this response as correct or helpful if it assisted you with your question.