The currentIssue() placeholder can be used to reference a field value from the current issue. To reference a field, put it’s name or ID in the function argument:
This placeholder will be substituted in the edit mode of the field. Because the function doesn’t actually exist and Jira doesn’t know how to parse it, it won’t be possible to preview the number of issues found by it in the configuration (it will show 0).
Below are a few examples of what can be done using JQL placeholders:
System field “reporter”
Only issues by the same reporter are shown.
System field “project”
Only issues from the same project as the current issue will be shown.
System field “labels”
Only issues where the labels match one of the labels in the current issue. Note the usage of extra brackets around the placeholder; value of labels is an array which requires the IN operator to be used and the value limited by brackets.
Single select custom field
Only issues having the same value of a custom field as the current one will be shown.
The currentIssue() placeholder won’t work in the Create issue screen. To maintain usability of the field in the Create issue screen, there is now an optional setting in the Linksy field configuration to use a different JQL filter for the Create issue screen.