Hi everyone,
We are currently using Jira Cloud Software in our company. In one of our projects, the version string 1.1.44.
was mistakenly entered in multiple places across several issues. We would like to replace every occurrence of 1.1.44.
with 1.2.50.
in the following fields:
Is there a way to perform a bulk search and replace across these fields, either via the UI or using a script/API? Any guidance or best practices would be appreciated.
Thanks in advance for your help!
Last thoughts -- if this is your first attempt at REST Work -- you will also need an API key.
My professional advice -- this automation may take time especially if you are new at it. There is always a chance you may make matters worse. If it's only a few hours of manual fix time -- buy the team a pizza lunch and just crank out the updates.
:-)
Another option is to use JIRA automation if the population where these updates need to be done is less.
You can use a scheduled trigger and run the JQL as suggested by @Mohamed Benziane
Save the individual values in variables and then use edit with json like below
{
"fields": {
"summary": "{{varSummary.replace("1.1.44", "1.2.50")}}",
"description": "{{varDescription.replace("1.1.44", "1.2.50")}}"
}
}
Comments and labels are arrays. Those need to be looped through to make the updates.
See which approach you would like to explore further API vs Automation or a 3rd party app like script runner
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can try using the rest api.
Search : The Jira Cloud platform REST API
Get comment : The Jira Cloud platform REST API
Update comment : The Jira Cloud platform REST API
Edit issue (for labels, description, summary): The Jira Cloud platform REST API
You can try to search issue like this :
summary ~ "1.1.44" or labels in (1.1.44) or description ~ 1.1.44 or comment ~ 1.1.44
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.