Strings
JQL strings use single quotes:
Pass the query as one command-line argument. Wrap it in double quotes so its single-quoted JQL strings remain intact.
where status = 'paid'
Strings are used for filenames, comparison values, and function arguments.
Common escapes
| Escape | Value |
|---|---|
\' | Single quote |
\" | Double quote |
\\ | Backslash |
\n | New line |
\r | Carriage return |
\t | Tab |
\b, \f, \v, \0 | JavaScript control characters |
\x41 | Two-digit hexadecimal character |
\u0041 | Four-digit Unicode character |
\u{1F680} | Unicode code point |
A backslash followed by a physical line break continues the string on the next line.
Regular-expression strings
Unknown escapes keep their backslash. This allows regular-expression patterns to use familiar tokens:
where code matches '^A\d+\.\d+$'
Here \d and \. reach the JavaScript regular-expression engine unchanged.