JSQL query

Anni R
Contributor
December 8, 2011

Hello!

Why is it so - that my query shows issues with Closed status, but it shoud'nt. Syntax != "Closed" means NOT EQUALS ("!=") and must be not showed.

status != "Closed" AND watcher = currentUser() OR reporter = currentUser() OR assignee = currentUser() ORDER BY status DESC, key DESC

But this query works as needed.

status != "Closed" and Suund = Tehniline ORDER BY cf[10081] ASC, key DESC

1 answer

2 votes
Nic Brough -Adaptavist-
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.
December 8, 2011

I think your clauses are being read (correctly) in a way you're not expecting.

Try

status != "Closed" AND (watcher = currentUser() OR reporter = currentUser() OR assignee = currentUser() ) ORDER BY status DESC, key DESC

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events