Use case

Return the total number of issues with any of the fix versions selected in the current issue.

Expression

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

%{%{issue.fixVersions} != null ? count(issuesFromJQL("fixVersion in ('" + jiraExpression( "issue?.fixVersions?.map(v =>  v?.name).join(\"','\") ") + "') ")) : null}

Used parser functions