Forums

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

JIRA Automation: Add a prefix to SUMMARY when a label is entered

Deleted user September 6, 2021

Hey everyone,

question as follows: During refinements we are adjusting our story names for visibility by adding the BE/FE prefix on a story and also using the label.

I wanted to write an automation when a label is introduced then the name gets edited to BE - OLD SUMMARY NAME but i couldn't find a way to do it.

Adding a picture to explain, thank you in advance!

Example

  • Story Name is CHANGE NAME
  • Label FRONTEND is added
    Story Name(summary) is changed to FE- CHANGE NAME


    Screenshot 2021-09-06 at 13.24.37.png


3 answers

1 accepted

6 votes
Answer accepted
Alexis Robert
Community Champion
September 6, 2021

Hi @[deleted] , 

 

so far your rule looks good : the only thing missing is, in the Edit Issue action, you will need to enter the following smart value for Summary : 

FE - {{issue.summary}}

 

This way, the value "FE" will be added before the issue summary. It's as simple as that !

You can have a look at the Smart Value documentation here : https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/

 

Let me know if this helps,

 

--Alexis

Deleted user September 6, 2021

Thank you alexis, i just added it and will let you know how it works out!

Deleted user September 6, 2021

@Alexis Robert i just tried the above but it removed the old issue summary and just replaced it with FE - , what can i do that FE is an addition to the existing summary and not just an overwrite?

EDIT: Disregard the above, i had a typo at SUMMARY :) Works great. thank you!

Alexis Robert
Community Champion
September 6, 2021

You're welcome ! Please mark this answer as accepted so that other people can also find it in the future 🙂

0 votes
Nipa Urbanz
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!
July 26, 2022

@Alexis Robert to branch out on this topic.  Is there a way to grab a certain part of the field value?   For example, if my {{issue.key}} = ITA-123 and I only want to put 123 (minus the ITA-) in my Summary field.   Thanks in advance.

0 votes
Fabian Lim
Community Champion
September 6, 2021

Hi @[deleted]

You need to apply smart values which is explained here: https://support.atlassian.com/jira-software-cloud/docs/what-are-smart-values/

In your case it would be something like this:

"FE" + {{issue.summay}} + {{ issue.labels}}

You may have to use some of the string functions to make this work.

Good luck

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events