Forums

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

Need to use the Contam Operator in a text field JMWE

Henrique Degan
Contributor
October 16, 2023

Hello,
I need to use a condition where it reads:

If the field {{issue.field.customfield_xxxx contains "Information"}} then it performs the pos function.

My doubt is here:
{{issue.field.customfield_xxxx contains "Infromation"}} how to use Contam?

 

Basically:

{{ issue.fields.customfield_11332 == "TEXT" }}
{{ issue.fields.customfield_11332 contains "TEXT" }}

 

1 answer

1 accepted

0 votes
Answer accepted
David Fischer
Community Champion
October 16, 2023

Hi @Henrique Degan 

This is the syntax:

{{ issue.fields.customfield_11332.includes("TEXT") }}

 but note that this is case-sensitive. You can also do this for case-insensitive:

{{ issue.fields.customfield_11332.toLowerCase().includes("text") }}

(Notice that the test string is all lowercase)

Henrique Degan
Contributor
October 16, 2023

Hello @David Fischer 

Thank you very much for your support, it worked here!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events