I am wanting to automatically have the current user added to a Multi User Custom Field (called 'Developer') when a story changes status.
I have setup JIRA automation (using JIRA Cloud) and have got the 'Current User' to be set as the assignee (that is working), but have been having issues with trying to get the current user added to the custom field.
I have setup the following Automation rule:

Where under the 'Edit Issue fields': I have tried the following:
1.
{
"fields": {
"Developer": {{initiator.accountId.asJsonObject("id")}}
}
}Which gave the error: Additional fields contains invalid field(s) in 'update' or 'fields' section.
2.
{
"update": {
"Developer": [{
"add": {{initiator.accountId.asJsonObject("id")}}
}]
}
}Which gave the error: Additional fields contains invalid field(s) in 'update' or 'fields' section.
3.
{
"fields": {
"customfield_10045": {{initiator.accountId.asJsonObject("id")}}
}
}and
{
"update": {
"customfield_10045": [{
"add": {{initiator.accountId.asJsonObject("id")}}
}]
}
}Both of which don't give any errors. But seem to only set the field like 5% of the time. I haven't been able to work out why the custom field is sometimes updated and sometimes it isn't.