I need to write an automation rule based on the user who logged the work. I have Tempo Timesheets enabled on my Jira software cloud.
I am calling the Tempo REST APIs https://api.tempo.io/core/3/worklogs/issue/{{issue.key}} which returns all work logs on this issue.
I need the latest author from the response. So I thought I can get that information if I can call Jira REST APIs like https://<my Jira cloud URL>/rest/api/2/user/accountId={{webResponse.body.results.author.first.accountId)}}
Then I realized the accountId is a list and I am not sure how to get only the latest worklog entry from the {{webResponse}} and the respective accountId to pass it to Jira REST API.
Is there a way to get the user who triggered the worklog from Tempo or Jira REST APIs?
Thanks