Hello, I need to add a worklog entry by the API.
I do this according to the documentation:
https://docs.atlassian.com/software/jira/docs/api/REST/1000.1584.0/#api/2/issue/\{issueIdOrKey}/worklog-addWorklog
POST http://domain.atlassian.net/rest/api/2/issue/KEY-103/worklog
{
"comment": "I did some work here.",
"visibility": {
"type": "group",
"value": "jira-developers"
},
"started": "2017-12-07T09:23:19.552+0000",
"timeSpentSeconds": 12000
}
However, it works as GET: returns 200 (instead of 201) and a full list of existing worklogs as a result. No new records added.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It looks to me like whatever you are using to connect is issuing a GET instead of the required POST. I'd start with a look at that call (I can't tell what it is just from "POST" stucj on the front)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.