Hey all, i have automation that triggered every time the description is updated.
Then it creates a variable and uses smart values to edit a custom field and add tagged users from the description to the custom field.
When i edit the description at first and tag a user its working, but when i edit the description again and add another user it won't add him.
any ideas what I'm missing?
Thanks !
Hi @Eran Roiter
For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!
Until we see those...
From what you describe, I hypothesize there is an error in using the match() function to parse out the mentioned users.
The match() function can have problems if there are newlines or multiple matches not handled properly. Perhaps try this expression to get the account id values from the mentions:
{{issue.description.replace("\n"," ").split(" ").match("\[~accountid:(.*)\]").distinct}}
That replaces the newlines and then splits on spaces first, reducing the scope the match needs to check. Then it returns only the distinct values in case someone is mentioned multiple times.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.