I'm creating auto labelling using regex summary issue. I'm using this regex "(?!\[)[^\[\] ]+(?=\])". my expectation it will get text with format "[FE] [BE] test issue 1223" and return "FE, BE". But, it return nothing. I have tried to use custom field
How to set label issue using array ?
and how to log this array ?
Hi @Rio Chandra -- Welcome to the Atlassian Community!
First thing, the documentation on match() states the "underlying implementation is based on Java's Pattern class and uses Matcher.find() to find matches." Note the "based on" part; I suggest using as simple of a regular expression as you can to get a match first, and then start refining it. I have encountered several things in the spec that do not work with automation rule, regular expressions.
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#match--
Next, when adding multiple labels at once from a smart value expression, please take a look at this example for the advanced edit to do so: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Labels
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.