Use case

Return the sum of the time spent of the linked issues linked to the current issue with the issue link type "is blocked by" in hours.

Expression

Create and configure a Smart field using this expression in General parsing mode:

%{sum(append(fieldValue({issue.timeSpent},linkedIssues("is blocked by")), [0]))/60}

If the resulting number from the expression contains too many decimal numbers, feel free to select one of the available display formats or to configure it manually.