Add a "Show Caller Assets" icon next to Configuration Item similar to the "Show Related Incidents" icon next to caller).?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2016 04:03 AM
Hi ,
I have a requirement where in i have to add a "Show Caller Assets" icon next to Configuration Item that will display assets associated to the Caller (similar to the "Show Related Incidents" icon next to Caller field). Clicking on one of the assets in the list should populate that asset it to Configuration item field on the form.
Basically what i have observed is, using the "Show Related Incidents" when we click on one of the incidents in the list, it will take us to that incident form.
Will we be able to populate this selected value to the Configuration Item field on the form? or we have to use the reference qualifier only for Configuration Item field?
Regards
Yogish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2016 11:49 PM
Take a look at the UI macro "user_show_incidents" which is used to show the popup. It should be possible to create a similar macro which shows a different UI page (which you would have to design). On this UI page you could also include controls that allow you to select a CI and update the form.
I would also check out of the box functions that do something similar, like for example the kb_category_reference_lookup macro.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2016 12:06 AM
hi Julian.
I created one and got it worked.
Thank you.
Yogish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2016 09:44 PM
Hi Yogesh,
I am working on a similar issue. Can you please let me know how you had created your icon.
Thanks and Regards,
kishore

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2016 02:43 AM
Hi,
Do you want to show the 'Show Caller Assets' next to the caller id field?,
if so, create a macro which is similar to 'user_show_incidents' macro (OOTB one) and reference it to the 'cmdb_ci_list', table in place of 'incident_list'.
Let me know if you need any help in doing so, i have to check my developer instance, which is hibernated now.
Thanks
Yogish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2016 03:59 AM
Thanks Yogesh for your input.
I had completed the task as suggested by you
On 8 Dec 2016 4:13 p.m., "yogesh15dd" <community-no-reply@servicenow.com>