Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Compile comment field only with certain text strings and only if certain values are present


I’m struggling with an issue but unfortunately I can’t find some documentation on it. We have several custom cascading fields that needs to be filled by the agents; the fathers of these fields (the first choice of the cascading) have values YES and NO. We need to fill a comment with the name of these custom fields ({{issue.[Custom Field].name}}) only if the father have value YES. An example:

  • Field 1: YES
  • Field 2: NO
  • Field 3: YES

Desired comment: Field 1, Field 3

The desired comment must be sent via mail with automation for Jira, but that is not the hard part. The problem here is to obtain this “desired comment”.

Any tip is appreciate.


1 answer

1 accepted

1 vote
Answer accepted

Hi @Gerardo Dalena 

According to this post, you can do that with an advanced compare condition:

Here is the related information on the JSON fields to support this:

There is an open suggestion in the Code Barrel (automation) backlog to add support for directly accessing the cascading fields in the condition compare.

Best regards,


Simeon Ross Atlassian Team May 25, 2021

Hi @Gerardo Dalena,

Bill is correct, the way that you'll need to do this is via the advanced condition. This will allow you to use smart values to access the cascading field.




thanks for all the tips.

The "desired comment" is made of all the fields that have YES as the parent. So, if I understand right, with 3 fields I have to create an if/else construct with all the possible outcome (YYY,YYN,YNY, etc). Is there a way to avoid this construct? It could be useful for larger group fields (es. 10 possibile fields with Y or N values).


Probably yes, and perhaps not, depending upon the format/content you want in the comment...

Please identify an example issue with the values you care about in the field(s), and then use the method described here to learn what the smart value/JSON structure is:

Then construct your comment to indicate all values, if they are indeed accessible this way.

@Simeon Ross -- could that work?


Simeon Ross Atlassian Team May 26, 2021

Hi @Gerardo Dalena

Ultimately, I think you need one of our backlog items which would allow you to filter items out of a list. That might make things easier here. 

However, I'm afraid that, yes, you'll need all the combinations. Or, a custom field.

If you had a field you could update then you can just check each field and, if it is yes, add it to the custom field so that you build up your value. That would only require 3 if statements then (separate if blocks though, not if / else if). You could also use entity properties and a refetch statement to achieve this as well.



Like Bill Sheboy likes this

Hello Bill and Simeon,

thank you very much for your support.

Best regards,

Like Bill Sheboy likes this

Suggest an answer

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

Introducing External Collaboration for Confluence

We’re excited to introduce external collaboration for Confluence, now available in early access. It is available to preview for Confluence Cloud Premium and Enterprise customers. (If you're not on ...

233 views 0 8
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