Forums

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

JIRA Automation - Update Summary Field with labels

Melody Georgelin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 28, 2022

 

Hi everyone,

I am trying to add automatically the labels into the "Summary" field of an issue.
When it comes to adding the labels for the first, it's working pretty well:

image.png

 

However, when the labels are updated, I am struggling to remove the previous labels from the Summary and replace them with the new ones.
The result I have is that all the labels are added to those already existing:

image.png

When it's an update, I have tried to remove everything that goes after the "||" and to add the labels but it doesn't seem to be working.

image.pngimage.png

Does anyone has an idea of how I could do this?

Thanks in advance for your help!

1 answer

1 accepted

0 votes
Answer accepted
Melody Georgelin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 28, 2022

I managed to do it by adding this in the "Else" part: {{issue.summary.substringBefore("||")}} || {{summaryLabels}}

Suggest an answer

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

Atlassian Community Events