In Project A - switching status to "Send To the Team" displays screen where user choses Project B and Label (system field) I need to do that if they choose labels beside B1, B2, and B3, Jira will not let them to submit the screen.
I picked transition to Send To the Team and added validator with Custom ScriptRunner. But seems it does not have affection. Jira shows that script works, but there is logic error somewhere. Maybe someone has successfully implemented this kind of validation?
Thank you in advance!
Here my script:
Could you not use the 'Components' field instead of Label? Components are much easier to control and restrict project by project. You can set the project settings to allow only certain Components. And users cannot create new ones on the fly. Components are a bit like an adult version whereas Labels are like kindergarten.
Or you could provide a custom field like a dropdown list with only the allowed values, and then have a rule or scipt copy the contents into the Label field.
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.