My use case is that I wanted to add a validator to out of box label field so that user can type only predefined labels. No free text should be allowed to it.
How can we achive it.
You cannot add validation to fields, validators only happen in workflows
"No free text should be allowed" - that would defeat the whole point of the label field.
If you don't want to allow free text in a label field, then there's a very simple way to achieve it - remove the label field from the project/issue and add a select or multi-select list instead. You don't need to validate select lists, you have complete control of the options, and people can't enter free text into them.
Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events