Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to test custom field value in Jira Automation


Dear all,

I have the following JQL condition in a automation rule


As you can see above, the no match condition is checking the existance of a linked issue where summary contains the selection of the custome field list string value

The used, of it is that if the linked issue exist, It should not created a linked issue of same summary staring


In sample below, the parent issue custom field is defined as "Agence Additionnelles"


As you can see from the Issue Liknked, it has created ducplicated linked issue. The goal of my JQL condition is suppose to guaranty only one single entry with same summary string

But this is not working, any idea about the syntax to be used ?


1 answer

1 accepted

1 vote
Answer accepted

Hello Calderara

I am assuming your custom field is a single select (not a multi-select). 

If that's the case then the smartvalue syntax would be:


the .get function gets the index of an array. So "0" is the first index.

Thnaks for your reply @Garrett McCreery ,

I have change the rule condition as you sugest as it is a single list select but it does not work either.

As you can see from the picture below, I have select for instance M-Cube in the list and the corresponding issue should have been created as it is not existing yet but it does not ?

Any idea ?

PS : Note that I am on Data Center version

After your automation step of "If: Agence Additionnelles is not empty", can you log the value, so that we can see what the value is coming back as?


Hello Here is the log capture


Field log is reported as empty

Instead of displaying what I sent, please try logging:

{{issue.Agence Additionnelles}} 

Hello, I get it to work by using the following syntax :

summary ~ "{{issue.fields.Agences additionnelles.value}}"

Like Garrett McCreery likes this

hello @Garrett McCreery , I still have a wierd issue

I have add as log in my Automation rule the field {{issue.fields.Agences additionnelles.value}} which return the correct value

But this condition below in my rule

summary ~ {{issue.fields.Agences additionnelles.value}}

Which should says that if summary field contains the custome field valule, then it should not create it but it is creating them, seems the condition is wierd or not working

For exemple below, it has created the M-CUBE linked issue while it was already existing



Any idea what is wrong ?


argggggg, white space leading

Do you know how to remove that? just use .trim() on the end.

Suggest an answer

Log in or Sign up to answer

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