Forums

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

Smart value {{issue.label.containts}} returns a list of booleans instead of one boolean

Bleepie
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 2, 2025

Hello,

In my Automation Rule I am trying to get a true or false answer from this piece of code:

{{issue.labels.contains("businessvalue-laag")}}

Which I saved in a variable. That variable is then saved into a audit log action. When I look at the audit log I see this as the result:

true, false, false

It is true for the first label, but I also have some other labels aswell. I was expecting just TRUE if it exists and I don't need the other two results. Why is this an issue for me?

Well I am trying to use this piece of code:

{{#if(issue.labels.contains("businessvalue-laag"))}}
    Hello
{{/}}

But this doesn't work. I am expecting to see Hello in my log when I use the above piece of code but its empty and I expect it is empty because the result of the labels.contains function is true, false, false instead of TRUE.

Why is this happening and how do I fix this? Thanks!

1 answer

0 votes
David Nickell
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.
October 2, 2025

Hello --

Just some speculation -- i added a Rule and  a work item field conditions check.  My Lables test worked find. I am not sure why you need/coded the smartvalue check.

How you are getting 3 answers???

is it always 3?  are there three values on the ticket?  and have you managed to loop through them?

I am not the world's foremost expert on automation (but i could fill volumes on how great the lables field is).  Hopefully somone else wil be able tell... otherwise I would probably need to see the entire rule to understand have you might be getting 3 results

 


2025-10-02_06-34-16-0000.png

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events