Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

how to use a conditional smart value


i need to edit a value based on a smart value result.

i have an edit action where

{{#issue.issuelinks}}{{#if{{equals(type,"blocks")}} {{inwardissue.key}}{{/}}{{/}}


however, the condition isnt working!!

i tried it as simple as {{#if{{equals("2","2")}} x {{/}} and couldnt get to print x. 

where am i missing it?

2 answers

@ben friedman absolutely no idea why, but you need to add spaces in front of `if` and the closing `/`

{{ #if{{equals("2","2")}} x {{ /}}

A comment in the following article led me to this strange one: 

Hi @Hauke Bruno Wollentin  -- Welcome to the Atlassian Community!

Thanks for that reminder about the spacing, and... your link seems to have some extra chars making it fail.  Here's one that works:


Best regards,

Hi @ben friedman 

Based upon the way the JSON/smart values are structured for links, I am unclear how you can do that directly in conditional logic: the link type appears to be in a separate node above the list of linked issues.  You might be able to use string functions to put the entire string into a created variable and then use string functions with a regular expression to parse it.

Or...have you considered  using JQL with LookupIssues, and then test the count/process the remaining issues?  Something like:

issue IN linkedIssues({{issue.key}}, "blocks")


Best regards,


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Trello

🏊‍♀️ Atlympic Event: Trello

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

109 views 1 11
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