JIRA JQL, how to check if all labels in a field is contained in a valid set? -
i have label field in jira called 'assets'. labels can manually added easy add 'wrong label', have set of defined valid labels.
valid labels = (one, two, three)
the jql use is: "assets" not in (one, two, three)
this works fine if ie. assets = (red, blue) etc. if asset fild contains 1 of valid labels not show. ie. asset = (one, blue) not shown, in fact show.
how can create jql checks labels in field contained in set?
unfortunately, there no way standard jql.
you can accomplish using script runner add-on though. allows implement own custom jql function in groovy using jira java api, can add whatever logic desire.
some interesting links:
Comments
Post a Comment