Automations and scripts related to entity_id

Hi all!
Is it possible to get a template list of automations and scripts related to entity_id as is in ‘Related’ tab in more info popup?
more_info