A nested query with quotes doesn't work

Problem

You use quotes in your query and you get a parsing error.

Let’s say that you query with a field that contains a space in its name - you need to use the quotes:

"Epic Link"=ABC-1

This query works fine but it fails if you use it as a nested query in a JQL function:

issue in linkedIssuesOfQuery(""Epic Link"=ABC-1")

Error in the JQL Query: Expecting ')' or ',' but got 'Epic'. (line 1, character 32)

Solution

Make sure to use single quotes inside the nested queries.

For example: issue in linkedIssuesOfQuery("'Epic Link'=ABC-1")

Related articles