All Values return TRUE with Smart Values Conditionals

Evrim Demir June 28, 2021

Hey everyone,

I am trying to put auto responses based on the request type in Jira service desk Cloud.

Here is my automation below;

{{ #if{{equals(issue.Request Type.requestType.name, "IT help")}}
Tech will take care of it.
{{ /}}

{{ #if{{equals(issue.Request Type.requestType.name, "Change/Feature Request")}}
Sorry, can't give any estimated completion date yet.
{{ /}}

 

However, regardless of the request type, both texts are being displayed. 

How can I fix that? 

thanks

1 answer

1 accepted

1 vote
Answer accepted
Kevin Bui
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 28, 2021

Hi @Evrim Demir,

The correct syntax is

{{#if(equals(issue.Request Type.requestType.name, "IT help"))}}

Tech will take care of it.

{{/}}

and

{{#if(equals(issue.Request Type.requestType.name, "Change/Feature Request"))}}
Sorry, can't give any estimated completion date yet.
{{/}}

 

Our documentation did list the syntax as you described it in your post, but this was an error - sorry about that! I've since corrected the docs.

Please let me know if this still doesn't work.

 

Cheers,

Kevin

Evrim Demir June 28, 2021

Seems to be working. Thanks @Kevin Bui 

Suggest an answer

Log in or Sign up to answer