In this example, a Calculated Number Field will be created for counting the amount of issues in the same version as the current one (e.g. a release ticket).
The configuration will look like this:
Text to be parsed is: count(issuesFromJQL("fixVersion = " + %{00074}))
Note that:
Adding this custom field to an issue (e.g. an epic) will look like this: