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!
I got it to work using the following syntax:
{{issue.summary.match("\[JIRA\] \((?:ITSM-\d+)\)(.*)")}}
Perfect. Thank you so much @Kian Stack Mumo Systems !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.