Return the total of story points added to issues in an epic.
%{sum(fieldValue({issue.cfnnnnn}, issuesUnderEpic()))} # nnnnn has to be replaced with the ID of your 'Story Points' custom field