Can you put extra spaces and tabs in JQL?

Ben G September 19, 2016

I am using some complex JQL queries. When I'm building them I like to construct them in a code editor and insert line breaks and tabs. A simplified fictional example would be: 

project = PROJECTA AND (fixVersion in (1.00, 2.00, 3.00)) OR
project = PROJECTB AND (fixVersion in (1.00, 1.10, 1.50))
AND Resolution in (Fixed)
AND Status in (Resolved, "Verified Resolved", Closed)

Instead of:

project = PROJECTA AND (fixVersion in (1.00, 2.00, 3.00)) OR project = PROJECTB AND (fixVersion in (1.00, 1.10, 1.50)) AND Resolution in (Fixed) AND Status in (Resolved, "Verified Resolved", Closed)

Will JIRA ignore the extra whitespace characters and evaluate these to expressions identically?

2 answers

1 accepted

0 votes
Answer accepted
noamdah
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 19, 2016

No problem with line breaks or tabs.

I suggest adding brackets to the OR you have:

(project = PROJECTA AND (fixVersion in (1.00, 2.00, 3.00)) OR
 project = PROJECTB AND (fixVersion in (1.00, 1.10, 1.50)))
 AND Resolution in (Fixed)
 AND Status in (Resolved, "Verified Resolved", Closed)
0 votes
Ben G September 19, 2016

Okay so that example doesn't have any tabs added, but it has line breaks added. I think you get the idea. 

Suggest an answer

Log in or Sign up to answer