The goal:
Take all mentions from the last comment, filter out the issue's current assignee if they are added and insert the users mentioned into a custom field.
The approach:
split the mentions from the comment into a custom variable and use that to insert into custom field
The problem:
I'm struggling to filter out the current assignee from the array
I've tried:
I know i can use advanced branching but as this is part of a bigger autmation, this isn't an option.
I've tried looping through array and filtering out the assignee but it doesn't work.
I've tried using different functions like .replace .remove but no luck with any of these.
I don't even know at this point if I'm approaching this in the right direction as I don't really work with smart values.
Can someone guide me in the right direction?
This is what is being used to create the custom variable:
{{issue.comments.last.body.replaceAll("\\n", "").split(" ").substringBetween("[~accountid:", "]")}}
For a question like this, context is important for the community to help. Please post the following:
Until we see those...
From what you describe, there are at least a couple of ways to do this:
I recommend using the first method as I have observed inconsistent results with automation rule support of regular expressions which do not contain a string.
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.