I am writing some automation for JIRA and I want to be able to return a specific label that contains a specific substring from a list of multiple labels.
For Example: There are two labels: abc123, 123456. I want to return the label with an "abc" substring. I have tried the following with no success:
{{issue.labels.first.contains("abc")}} -> returns true or false but i want the actual label, not a boolean.
{{issue.labels.match(*.abc.*)}} -> does not return anything.
I thought that i could just find the first element in the label list that contains a substring but it doesnt seem to be that easy. Any help would be great thanks!