Hi all,
I want to reset/clear the Labels Field when an issue is clone. I have written the script runner that can do so for Custom fields but since Label is a Jira System field, I am not able to reset it on clone. Can any Jira experts help me with it?
Also, can we use Clear field Post function to do so on clone. The Label field is not on Create screen, so even if I can figure out how to use the clear field JSU post function, it will work for me.
Thanks in Advane
Jira doesn't distinguish creating a new issue versus creating an issue via clone, so this can lead to challenges in scenarios where you only want the action to happen for one or the other.
In your case, you have two things working in your favor:
This combination means you have the option to clear the Labels field at creation without negatively impacting your users who are simply creating a new issue not using clone.
Here's how we do that:
The one thing to keep in mind is that given this solution impacts new issues regardless of how they are created (create or clone), should you ever change your screen configuration to include Labels on the Create screen, it would cause a negative user experience. The end user would input a value in the field, as the issue is being created the post-function would clear the value they entered and once the issue was created the field would appear blank on the issue detail screen. It's very frustrating for the user as they know they just entered the data.
As long as you aren't planning to add Labels to the create field though this should give you the result you want.
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.