I have tried to automate time tracking field using the automation rules -
Rule - 1 (Create a timestamp when issue transitioned from "To-Do" to "In-Progress")
JQL : {{#now}}toMinutes{{/}}
Rule - 2 (Update time tracking field based on the time spent between status field transition from "In-Progress" to "Done")
JQL :
{
"update": {
"worklog" : [
{
"add": {
"timeSpent" : "{{#=}}{{#now}}toMinutes{{/}} - {{issue.properties.timestamp_in_progress}}{{/}}m"
}
}
]
}
}
After applying this rule i get time tracking logged in the issue successfully. But it was logged on behalf of "Automation by JIRA"

Question : How can i achieve this automation through any customer "people" fields which i have named "Developer" ?
(i,e whom so ever is assigned in the developer's field, the work log must be added on behalf of that developer, not automation in JIRA)