Forums

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

How can I do a search-and-replace to remove the "CLONE -" prefix?

Michael Reiche
Contributor
June 19, 2018

How can I do a search-and-replace to remove the "CLONE -" prefix?

3 answers

1 vote
Payne
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 19, 2018

If you have ScriptRunner installed (or are otherwise comfortable using the API), you may could accomplish this programatically in a manner similar to what is described in the following link. This example is for updating one issue, but you could determine the desired issue list using something like /rest/api/2/search?jql=summary~clone and then iterate over that list, setting the summary to its current value, omitting the first 9 characters (the length of "clones - ")

http://scriptrunner-docs.connect.adaptavist.com/jiracloud/script-console.html#_update_an_issue

Michael Reiche
Contributor
June 19, 2018

I already have a pointer to this search-and-replace function.  https://github.com/cboyke1/jira_search_replace

It's unfortunate that the product has nothing to do this with.
It's unfortunate that the product's default behavior is to prefix cloned tasks and subtasks.
It's unfortunate that even after a number of people have struggled with this it is still this way.

0 votes
Gary Shaw
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!
February 8, 2022

The fix is to export the issues to a csv, find & replace in the csv, and then use that with the Admin import to update those issues. 

0 votes
Prakhar Srivastav {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 19, 2018

@Michael Reiche

In the search navigator , search like summary ~ "CLONE -".

When you get the desired result then use bulk clone to change the Summary of all the issues.

You can find bulk clone operation on top right corner of your search view.

 

Regards

Prakhar

Michael Reiche
Contributor
June 19, 2018

> You can find bulk clone operation on top right corner of your search view.

But I don't want to clone them.  I want to remove "CLONE -" from the summary. (also - I do not find Bulk anything in the top-right corner of the search view.  Just "Share", "Export" and "Tools", and under Tools is "No Available Option(s)"

Like Chris Noble likes this
Prakhar Srivastav {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 19, 2018

@Michael Reiche

Sorry, that was typo. I meant to say Bulk Edit.

Your administrator might have turned off that feature hence you are not seeing it.

Follow these documentation pages based on your set up (server and cloud) :

https://confluence.atlassian.com/jiracoreserver073/editing-multiple-issues-at-the-same-time-861257342.html

https://confluence.atlassian.com/jiracorecloud/editing-multiple-issues-at-the-same-time-902498099.html

Michael Reiche
Contributor
June 19, 2018

According to the second link you provided, Summary cannot be modified by a bulk-edit.  Prefixing Summary with "CLONE -" is really ugly and is causing problems for many users. I know that *before* cloning, the prefix can be set - but I already have about 400 tasks that have been cloned.

The following system fields are unavailable for bulk editing:

  • Attachments
  • Summary
    .
    .
    .
Like Thomas Rohrer likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events