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

Platform Notice: Cloud - This article 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 comments. 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".



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

Summary

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

Description:

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

Comments:

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

Last modified on Aug 2, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.