- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2018 09:49 PM
Hi,
OOB display name of asset is combination of Asset tag & model id.
But I want the display name of asset to be same as CI name.
Please suggest some solution.
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2018 05:15 AM
Hi,
Go to AssetUtils Script include and See beow function and change as i did.
Below is the OOB code which i have modified:
calculateDisplayName : function(asset) {
var display_name = "";
if (asset.asset_tag)
display_name += asset.asset_tag + " - ";
if (asset.model)
//display_name += asset.model.display_name; Instead of this we use below line
display_name += asset.ci.name;
if (asset.display_name == display_name)
return false;
asset.display_name = display_name.trim();
return true;
},
Thanks,
Ashutosh Munot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2018 11:55 PM
Thanks Ashutosh,
I will try this out.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2018 03:38 AM
HI,
Please mark answer as correct or helpful if you are satisfied with this answer
Thanks,
Ashutosh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2019 11:18 AM
Hi Ashutosh,
I am having a similar issue and it looks like your solution isn't working for me. I changed the AssetUtils script and verify the business rule, calculateDisplayName, is accurate. Is there anything else I am missing? My display name just shows 'Unknown' in the asset table and I have imported it from the cmdb_ci_computers table.
Any advice?
Thanks,
Jackie