We have a bunch of issues in JIRA with a typo in a custom field value. The custom field holds values for URL's to our old bug tracker. The problem is that the host part of the URL is wrong in all of the issues.
Is there a way to fix this using bulk-edit or some other feature? To clariify, the need is to do a string replace for the existing values.
Yes, this is possible with JIRA Command Line Interface. Use runFromIssueList to do this for all issues satisfying a query. Use copyFieldValue to copy the custom field back to itself using findReplace and/or findReplaceRegex to do the substitution. Be careful to test this on a small number of issues first so you get it right. Use --simulate to see the copy actions that will be run based on your query.
Here is an example:
jira --action runFromIssueList --search project=zjiracli --common "-a copyFieldValue --issue @issue@ --field custom2 --field2 custom2 --findReplaceRegex this.com:that.com"
You should be able to use bulk edit to change the existing custom fields. However, please bear in mind that this can only work if the custom field is set to appear in all the issues that you are about to bulk edit. Otherwise, you might not be able to see the custom field when bulk-editing.
I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs