Please help us how to add CI with the Display name by removing the asset tag

NagaNandini N
Tera Guru

Hi All,

 

Can someone help me how to add CI with the Display name by removing the asset tag. We have a existing business rule and tried modifying it but it doesnot work.

 

Please help me on this 

 

Condition : current.asset_tag.changes() || current.model.changes() || current.operation() == 'insert'
Script : 
updateDisplayName(current);

function updateDisplayName(current) {
    new AssetUtils().calculateDisplayName(current);
}
 
Changed one :

 

Condition : current.ci.changes() || current.model.changes() || current.operation() == 'insert'
Script : 
updateDisplayName(current);

function updateDisplayName(current) {
    new AssetUtils().calculateDisplayName(current);
}
 
Regards,
Naganandini N
0 REPLIES 0