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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Nested Smart Values Edited

How do you nest/combine Smart Values?

I'd like to check to see if the first 9 characters are numeric.

The format of "valid" values from the source of record is 123456789_12 or #########_##

This provides the first 9 characters successfully ->{{issue.field.left(9)}} 


This provides the result if it's numeric successfully -> {{issue.field.isNumeric()}}

How to I combine these to see if the first 9 characters are numeric from this entry? 123456789_12

2 answers

Hello @Joel_Hall 

Use the abbreviate() function to select the first nine characters.

and the isAlpha() function to determine if the expression does not contain character. The function should return false in your exemple.

Here is the smart values documentation.

Let me know the solution

Separately each function works as advertised. 

The format of "valid" values from the source of record is 123456789_12 or #########_##

I'm trying to combine the Smart Values to check to see if what's entered matches the format.

So in english I'm trying to "Test to see if the first 9 characters are numeric"

I can test to see if the 10th character is an undersocre (_) just fine


Nice thought @Joel_Hall , try to create the most simple rule (check the underscore).

You know better than me all the different values stored in your custom field. Like in science, the most simple and general rule almost works better than complicated ones. I try to keep in my minds this method.

Hope you find the right rule.

Like Joel_Hall likes this

As to the original post, would this work?


In my experience I've been able to "combine" methods (I'm sure that's not the right terminology) this way.

Example: {{issue.field.value.toLowercase().replace(" ","_").urlEncode}}

That takes the field, converts it to lowercase, replaces spaces with underscores, and finally, urlEncodes it.

Greetings, community!  What was the answer in regards to nesting of smart value expressions?  I have not been able to get this to work either.


Well, I finally got a request filed for this:

Possibility to nest smart values in Automation:

Thanks, @Darryl Lee 

I previously submitted a related defect, that smart values (issue or variable) do not work within an iterator.  For example:

{{#issues}}* {{key}}, elapsed days: {{created.diff(now).days}} {{/}}

I heard back, "not intended to work that way; functions as designed."  More generally, the supported automation processing engine for Jira Cloud is not the same as for JSD, so it may help customers to submit two defects, when appropriate.  For example, {{issues}} (result set of JQL) is only on supported for JSD at this time, but nested syntax within iterators is not supported in either product.


Ahh yes, "Legacy Automation" (that's what they call it now). I'm new to JSD, so I didn't have any experience with the old automation.

Do they support iterators at all? My minimal exposure to Legacy Automations led me to believe the options were much more limited:

I do not know if the iterator issue is legacy versus new automation related...  The "new" automation in JSD (Automation for Jira) does support iterators, as there is an example in one of the documentation pages showing the use of {{#issues... }} processing after a scheduled JQL trigger.

Regarding the supported smart value (and scoping) documentation, I made a suggestion that automation documentation could be more like what is provided for the REST API, with a single, ginorous page with expandable sections, showing examples, scoping (Jira, JSD, or both), error messages, alias naming for UX, Smart Value, and REST API, etc.

One can hope.  ;^)

Suggest an answer

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

Announcing the waitlist for Jira Work Management

Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...

858 views 14 20
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