Hi,
We are using an email to create issues in jira. Those emails have as subject "TITLE#Issue title#USER$anuser@email.com$".
Then we have an automation that triggers when an issue is created, if the subject contains an "@", then:
- Adds a customer to the project using "{{{issue.summary.substringBetween("USER$","$")}}}"
-After that, I want to assign also the new issue to the user that has the email written in the summary, I am using this code but it is not working:
{
"set": {
"assignee": {
"set": "{{{issue.summary.substringBetween("USER$","$")}}}"
}
}
}
I think I need the accountID of the user in order to assign the issue to him, I tried sending this web request, but it is not working, I get a "bad request 400":
Webhook URL: https://<put-your-sitename-here>.atlassian.net/rest/api/3/user/search?query={{issue.summary.substringBetween("USER$","$").urlEncode}}
Can anyone tell me if I am missing something? Thank you in advance.
Regards