Hello,
I have a project setup in Jira cloud and there are thousands of work items already created and most of them are having one or more labels assigned. But the labels are in different cases and I want all the labels to be converted to UPPERCASE. How can I achieve that with automation?
Also I want the old original labels to be replaced with upparcase text only. No new labels should be added automatically.
And in future, if Any user adds a label to the task, it should be automatically converted to Uppercase for clarity. How can that be achieved too?
Hi @Ravindra Mehta - Welcome to the Atlassian Community. Please check here and seems like you can actually convert the values to upper case.
You might also hit a bug but it's worth trying.
Let me know if you are able to resolve it.
Thanks,
Bharat
Hi @Ravindra Mehta -- Welcome to the Atlassian Community!
Short answer: As you have described the scenario, that is not easily possible.
Labels are case-sensitive. If you have a work item (formerly called "issues") with an existing label with lowercase characters and want that to be uppercase a new label must be created / added and the old one removed from the work item. To do that for the entire site, each work item would need to be checked and updated to eventually remove all of the labels with lowercase letters.
That is not likely possible with automation rules at a Standard license level as the thousands of work items you describe would take potentially hundreds-to-thousands of rule executions...running globally on a scheduled trigger until all of the work items are caught up.
For a single work item create / update event, the labels could be examined and updated.
A possible workaround would be using the REST API to get all possible labels, and use them to then identify impacted work items with the bulk-handling endpoints for search and perform updates. In my opinion, that would be easier to build in an external application, outside of Jira, rather than trying to use automation rules for the updates.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ravindra Mehta Welcome to the Atlassian community.
Your problem can be fixed using an automation that checks the content of the field labels.
As multiple labels can be given, this field is an array of strings. This answer has already been given here at the forums.
Be advised though, that you can use compounds as well. These are project-defined "labels" that are selected using a dropdown list, rather than a free-format text field.
It would depend on your use-case which would be the best for you.
Kind regards,
Dick
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.