Hello,
I'm currently running the below automation, which outputs the user ID of a user mentioned in a comment like this :
"accountid:123a456b7891be664"
I'd like to change update a custom user picker field with the account id that has been extracted from this, I can change the JSON to add or remove bits around the string, however I haven't been able to get the custom user picker field to accept anything I've thrown at it so far.
The regex that finds the accountid is :
\[~accountid:.+\]
And the JSON is :
{
"update": {
"customfield_10633": [{
"set": "{{issue.comments.last.body.match("(\[~accountid:.+\])").remove("[~").remove("]")}}"
}]
}
}

Any ideas on what I'm doing wrong here?