Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira automation smart value for concatenating string not working

Jacob Turley August 1, 2023

I have a deployment automation that has a name like "Release v1.14.30".  I'm trying to create a fix version that ends up like this:

momentum:1.14.30

 

The smart value is this: {{"momentum:".concat(deployment.name.substringAfter('Release v'))}}

 

However, I am getting this error:

Error rendering smart values when executing this rule:
Failed to get value for "momentum:".concat(deployment.name.substringAfter('Release v')): {{"momentum:".concat(deployment.name.substringAfter('Release v'))}}
I would have assumed I can concat onto a string, but not sure if I'm doing something else wrong?

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 1, 2023

Hi @Jacob Turley 

You cannot use a literal value (e.g., "momentum") as the starting value in the expression.

Please try storing that literal in a created variable first, and then use that to create your new version name.

Or...build the entire thing in the variable in one step for use later:

  • action: create variable
    • name: varMyVersionName
    • value:
momentum:{{deployment.name.substringAfter('Release v')}}

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events