How to I add a text string to the start of a smart value?

Jayme James April 2, 2024

I'm using concat(String str) to add a string of text in an Automation rule but would like to see it at the start rather then then end.

What I'm using:

{{issue.summary.concat(" Add My Text - ")}}

Current Result = Issue Summary Add My Text -

What I'd like:

Result = Add My Text - Issue Summary

1 answer

1 accepted

0 votes
Answer accepted
Kalyan Sattaluri
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.
April 2, 2024

Hello @Jayme James 

You just use:     Add My Text - {{Issue Summary}}

No need to apply text functions..

Jayme James April 2, 2024

Hi @Kalyan Sattaluri

That doesn't seem to work just adds "Add My Text - " and doesn't populate the trigger issue summary.  I may have failed to specifiy that in the automation I am creating a subtask.

The goal is to create a new subtask and have the summary of this new item as

  (" Add My Text - ") and the triggerissue.summary

Kalyan Sattaluri
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.
April 2, 2024

Hello, Apologies...it should be like below.. please check and let me know..

Add My Text {{issue.summary}}

image.png

Jayme James April 2, 2024

Thanks again @Kalyan Sattaluri .  In typing this out to you I realized my issue was that I was using {{issue.summary}} rather than {{triggerissue.summary}} in the condition!

Suggest an answer

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

Atlassian Community Events