I want an automation rule that uses 'Manual Trigger' and on clicking on that trigger a single user type custom field will get populated with the current username(User who trigered the event). I am currently using an automation rule where as Action I have used smart value with the following JSON:
{
"fields": {
"customfield_14901": {{initiator.accountId.asJsonObject("id")}}
},
}
But this is throwing error and even if it runs successfully the field is not updated. Can anyone please guide me towards the correct JSOn format to achieve this?
FYI: Using Jira Datacenter instance