Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,295,747
Community Members
 
Community Events
165
Community Groups

Table Transformer Where Clause Not Working

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

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
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

954 views 15 27
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you