Can you put extra spaces and tabs in JQL?

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

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)

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 Join to answer
Community showcase
Emilee Spencer
Published yesterday in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

50 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot