Our team has test cases with labels. When we clone a test case with labels, they are inherited. Is it possible to remove the inheritance of the labels field?
Hi @alexei and welcome to the community!
When cloning a test case in Jira, the labels are inherited by default, which can be inconvenient if you need different labels for the cloned issue. To customize this behavior, I recommend using our app Deep Clone for Jira. Deep Clone allows you to specify exactly what fields to include or exclude during the cloning process, including labels. For labels, you can use our Field Editor feature to clear the field while cloning.
Hi Alexei,
When cloning a test case in Jira, labels are inherited by default. If you want to remove the inheritance of the labels field, here are few solutions that may be working, depending on Your setup, environment and apps available.
Automation Rule with Autiomation for Jira
Scriptrunner Custom Scripting
If you use Scriptrunner, you can write a custom script to automatically remove labels when cloning.
I hope this may help.
Best regards,
Pears
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @alexei , welcome to the Atlassian Community and thanks for your question.
I don't think it will be possible to choose what is and isn't copied using the standard cloning functionality - https://support.atlassian.com/jira-software-cloud/docs/clone-an-issue/
You can use scripts or apps to copy issues (or test cases) where you could specify exactly what you want to copy and not the rest. Is this a possibility for you? Do you have any apps like ScriptRunner or Jira Misc?
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @alexei ,
I wanted to check in and see if any of the suggestions helped you with the issue of label inheritance when cloning test cases. If you found a solution, it would be great to know, and feel free to accept any of the answers if they resolved your problem - it helps others find solutions faster.
Looking forward to hearing how it went!
Best regards,
Pears
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.