Hi,
I've tried to search for a post but can't find one that matches. I would like to have a JMWE validator that makes sure that on the issue that I'm trying to transition, there is at least one (there may be several) labels that start with a certain string. No labels at all are not accepted.
Let's pretend that I have the requirement to have at least one label starting with "US-" - so "US-FL", or "US-TE" e.g.
So no label would give an error, one label saying "CA-OT" would not be OK but having two labels saying "CA-OT" and another "US-WY" would be OK as would having "US-AL" and "US-NY".
Hi @Ola Nissen ,
this is the Jira Expression you need for your Build-your-own Validator:
!!issue.labels && issue.labels.some(label => label.indexOf("US-") == 0)
Regards,
David
Thanks for the quick answer. Tested and verified. Excellent help.
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.