Forums

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

How to replace a text by Automation by a custom field

Aurélie Pilette
Contributor
February 6, 2023

Hello,

 

Actually, my summary is for example "Back - - Summary"

So, i would likre when my story is filled that my Summary becomes "Back - Storyvalue - Summary"

i find the Automation and the possibility to replace by issue.summary.replace

but when i try this : {{issue.summary.replace("- -", {{issue.Story})}}

==> my summary becomes "Back Summary"

So, how to replace a text value by a custom field value ?

Thanks a lot

2 answers

1 accepted

2 votes
Answer accepted
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.
February 6, 2023

Hi @Aurélie Pilette 

With the curly-bracket syntax, you do not need to use them again once inside of a set.

Please try this:

{{issue.summary.replace("- -", issue.yourCustomFieldName)}}

Kind regards,
Bill

Aurélie Pilette
Contributor
February 6, 2023

Hi @Bill Sheboy ,

 

I try this but it doesn't work.

but I find an alternative solution to my problem.

like my issue has the same beginning : front - - Title

and i would like to have Impact - Stoprypoint - Title

I put an automation : 

{issue.impact} - {issue.storypoint} - {{issue.summary.substring(9)}}

And I have what I want. Thanks a lot

0 votes
Danielle Drapeau February 7, 2025

@Bill Sheboy Do you know why your suggestion isn't working? I'm trying to do the same thing but within a long checklist. So I can't use @Aurélie Pilette's suggestion because I still need to leave the rest of the text

I've been racking my brain on this for days 

Suggest an answer

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

Atlassian Community Events