Hi everybody!
Could somebody give the cue how to add a new entry of worklog in JIRA’s issue via REST API?
I try to add worklog entry via REST API line:
curl --request POST -u user:password -H “Content-Type: application/json” “http://jiraserver:port/rest/api/2/issue/TESTERR-2/worklog?author=user&started=20180221&timeSpentSeconds=3600&adjustEstimate=new&newEstimate=2d”
Or in case I’ve already added a one worklog manually and would like to add a new one via REST API:
curl --request POST -u user:password -H “Content-Type: application/json” “http://jiraserver:port/rest/api/2/issue/TESTERR-2/worklog?author=user&started=20180221&timeSpentSeconds=3600”
- TESTERR-2 - this is a JIRA issue key.
It doesn’t matter what parameter I added the text of error always the same:
{“errorMessages”:[“No content to map to Object due to end of input”]}
I use the REST API docs given here:
https://docs.atlassian.com/software/jira/docs/api/REST/7.3.3/?_ga=2.174542626.1666439307.1519293627-1080493640.1514451808#api/2/issue-updateWorklog
Do you have any idea how to do it?