Forums

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

Automation and Text Manipulation

Stu
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!
October 1, 2021

I'm trying to find the correct way to update an issue summary via an automation rule.

Sometimes my team will create issues from emails that they receive; sometimes those emails came from other Jira projects (other teams).

As an example, a new issue is added with the summary "[JIRA] (ITSM-12345) Do Something".  I want the automation rule to change the summary to "Do Something".

I know how to find the "ITSM-12345" using {{issue.summary.match("(?:ITSM-\d+)")}} but what I have not been able to solve is how to take that to the next step so that I can remove "[JIRA] (ITSM-12345) " from the summary.

I have been messing around with this as an attempt but clearly my syntax is wrong:

{{issue.summary.remove("[JIRA] ({{issue.summary.match("(?:ITSM-\d+)")}})")}}

 

I appreciate any guidance offered.

 

Thanks!

1 answer

1 accepted

2 votes
Answer accepted
Kian Stack Mumo Systems
Community Champion
October 1, 2021

I got it to work using the following syntax:

 

{{issue.summary.match("\[JIRA\] \((?:ITSM-\d+)\)(.*)")}}

 

 Screen Shot 2021-10-01 at 8.57.05 AM.png

Stu
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!
October 1, 2021

Perfect.  Thank you so much @Kian Stack Mumo Systems !

Suggest an answer

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

Atlassian Community Events