Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Table Transformer Where Clause Not Working

Leona
Contributor
May 26, 2022

Hi, please help. A simple query.

SELECT COUNT(T1.'Key') AS 'Open' 
FROM T1
WHERE T1.'Status' IN ("TO DO", "IN PROGRESS", "BACKLOG")

OR

SELECT COUNT(T1.'Key') AS 'Open' 
FROM T1
WHERE T1.'Status' = "TO DO"

both do not work. I get nothing.

However, this works!!! Why?

SELECT COUNT(T1.'Key') AS 'Open' 
FROM T1
WHERE T1.'Status' LIKE "%IN PROGRESS%"
OR T1.'Status' LIKE "%TO DO%"
OR T1.'Status' LIKE "%BACKLOG%"

Like.png

1 answer

1 accepted

3 votes
Answer accepted
Katerina Kovriga _Stiltsoft_
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.
May 27, 2022

Hi @Leona,

The first two queries work well if you change the names of your statuses: for example, TO DO -> To Do, IN PROGRESS -> In Progress.

Please see the screenshots below and check the queries - I specifically made the status names visible near the preview window:

Fri 9-1.pngFri 9-2.pngFri 9-3.png

And the third query catches all the suitable names without the lower/uppercase check.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events