Automatically replace some text in Summary,Description,Comments from the Jira issues in bulk

Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

Summary

Users need to edit some text or characters from the Jira issues in bulk, as this text can be in any issue summary, description, or comment. This document depicts the solution to achieve this without the database update in Jira Cloud and the steps needed to follow to achieve this.

Environment

Jira Cloud.

Solution

Automation for Jira:

We can use JIRA Automation to find issues resolved after their due dates. Setup an automation rule that is triggered as per schedule or manually, and have it update the Issue Summary, Description, and Comments to replace the oldtext with the newtext

Here's an example screenshot of this automation rule using the "Advanced compare condition".

(Auto-migrated image: description temporarily unavailable)
(Auto-migrated image: description temporarily unavailable)
(Auto-migrated image: description temporarily unavailable)
(Auto-migrated image: description temporarily unavailable)

The key values in the Edit issue actions are as follows:

Summary

1 {{issue.summary.replaceAll("(oldtext)", "newtext")}}

Description:

1 {{issue.description.replaceAll("oldtext", "newtext")}}

Comments:

1 {{eachcomment.body.replaceAll("(oldtext)", Matcher.quoteReplacement("newtext"))}}

Updated on March 11, 2025

Still need help?

The Atlassian Community is here for you.