Use case
Return a list with all the components set in the sub-tasks of the current issue. Every component only appears once.
Expression
Create and configure a Smart field using this expression in General parsing mode:
%{distinct(fieldValue(%{issue.components}, subtasks()))}