I've got a curl script that can add a worklog via the Jira API:
curl -u <MyUserName>:<MyAPIToken> -H "Content-Type: application/json" -X POST "<OurJiraInstanceUrl>/rest/api/2/issue/<IssueId>/worklog" -d "{\"comment\":\"Test\",\"started\":\"2020-02-19T09:00:00.000-0700\",\"timeSpent\":\"8h\"}However, using v3 of the API with everything else exactly the same always results in:
{"errorMessages":["Invalid document format","Worklog must not be null."],"errors":{}}
Not sure what's so different, especially considering the documentation here and here appear to be the same...
Would somebody mind clarifying and/or updating the documentation for v3?