Table Transformer - Select Where Value Contains Text

Emily Berg
Contributor
February 15, 2022

Hello Community!

Is it possible to use a table transformer to filter out criteria that "contains" text rather than being equal to text?

For example, here is SQL query for an exact match:

SELECT * FROM T1
WHERE
T1.'Fix Version/s' = (SELECT T2.'Variable' FROM T2 WHERE T2.'Index' = 1)

2022-02-15_12-11-34.png

Is there a way for me to include a wildcard indicator or a "Like" function to the variable - i.e. Variable = "721018502*".  This would parse out every wildcard match of 721018502, not just exact matches to "721018502 V00"?

I would prefer to use the table transformer rather than the filter macro wrapped around the excerpt.

Thank you!

Emily

1 answer

1 accepted

1 vote
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.
February 15, 2022

Hi @Emily Berg ,

Please try this SQL query for your Table Transformer macro:

SELECT * FROM T1
WHERE
T1.'Fix Version/s' LIKE (SELECT T2.'Variable' FROM T2 WHERE T2.'Index' = 1) + "%"

And don't forget to cut your variable in the table and leave it, for example, as "721018502".

Emily Berg
Contributor
February 16, 2022

@Katerina Kovriga _Stiltsoft_ - works perfectly, as usual!

Thank you for the always fast response!

Emily

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events