Lon Landry4
Mega Sage
 

Thanks for asking, the request_line field on Asset table. Harware Table Schema Map.png

That is a field on an asset that associates it with one RITM. If you don't have a way for multiple RITMs to be associated with an asset, such as they can be OOTB with a CI, and just want your related list to only ever show one record - which is not the best use of a related list, but...

current.addQuery('sys_id', parent.request_line);

 

Yes, I understand I will have a one (asset) to many (RITMs) relationship. Is this possible with scripting?

Relying on the out of the box Request line field on the alm_asset table, you could have one RITM associated with many assets, but not one asset to many RITMs.  To do this you would need to add an asset column to the sc_req_item table, much like the existing configuration_item column.

View solution in original post

Lon Landry4
Mega Sage

Thanks Brad, that is the path I will take.