I have tried everything to get an exact match on an If statement in an automation, but it keeps coming up with putting the issue in both categories. The issue has the label of "DEV-APPROVAL" but it keeps getting added to the "DEV" section. Here are the if statements.
{{#if (labels.match("(DEV-APPROVAL)").size.gt(0))}}
{{#if (labels.match("(DEV)").size.gt(0))}}
Sample of code
{{#issues}}
{{#if (labels.match("(DEV-APPROVAL)").size.gt(0))}}
<ul style="font-size:18px;">
<li><strong><a href="{{url}}">{{key}} - {{summary}}</a></strong>
<ul><strong><li>Description:</strong>{{description.html.remove("<p>").remove("</p>")}}</li>
***and more***
{{#issues}}
{{#if (labels.match("(DEV)").size.gt(0))}}
***same as above..***