Forums

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

How can I limit the amount of times a word can appear in a summary?

Sam Vanderbilt January 25, 2024

We use labels to create clones of tickets and these labels update various fields on the ticket. The action I want to change is that it adds "Recurring - " to the summary. But the problem is we often have to add labels to our clones so then our Issue Summary becomes "Recurring - Recurring - Project XYZ" when I want it to only ever have a maximum of 1 "Recurring - " in the summary.

What I want is it to be smart enough that it will read the summary and if it sees "Recurring -" add nothing. I have tried coming at this from various angles, but to no success and when I check the audit log, the rule is ALWAYS config change no matter how much time i let go by after updating a rule or even when I do not make any changes to the rule.Screenshot 2024-01-25 at 11.23.07 AM.pngScreenshot 2024-01-25 at 11.23.15 AM.pngScreenshot 2024-01-25 at 11.23.33 AM.pngScreenshot 2024-01-25 at 11.25.56 AM.png

1 answer

2 votes
Rudy Holtkamp
Community Champion
January 26, 2024

Hi @Sam Vanderbilt ,

I think you want to have the following automation rule:

image.png

It triggers on all changes of summary (but if you want, you can also only use it when the issue is created).

Then it looks if the summary starts with at least two times 'Recurring -'
You only want the 'Recurring -' text to show up once', so there might be 10 occurrences, that does not matter. 

Next you will remove all the occurrences of 'Recurring -' and place one in front.

Sam Vanderbilt January 26, 2024

Hi @Rudy Holtkamp, thanks for the response. This does not seem to work however. The issues field condition in your automation only applies it to missions that contain "Recurring - Recurring -" when I actually need it to never get to the point where the summary could have more than one "Recurring -"

The english behind the logic that I think would work is:

IF {{issue.summary}} contains "Recurring -" 

Then do NOT add "Recurring -"


It could also be that im unfamiliar with how to write this exactly in JIRA. I'm only a few months into learning JIRA, so it's not always obvious to me what needs "", (), "()", etc.

Here's screenshots of how I wrote your automation which did not work. For the then statement, I tried both:

Recurring - {{issue.summary.remove("Recurring -")}}

&

Recurring - {{issue.summary.remove("Recurring - Recurring -")}}


Screenshot 2024-01-26 at 11.17.24 AM.pngScreenshot 2024-01-26 at 11.13.46 AM.pngScreenshot 2024-01-26 at 11.13.37 AM.pngScreenshot 2024-01-26 at 11.13.32 AM.png

Suggest an answer

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

Atlassian Community Events