For developping and testing, the JIRA REST API Browser is a great help, because you can run the service calls directly form the GUI and - using a tool like Firebug - can also see the URL that you need to generate. Unfortunately, this product has a bug that prevents it from working correctly with non-JIRA add-ons, so a patch is required.
...
Click on send to get the results.
You will see the URL
Code Block |
---|
https://example.com/myjira/rest/icbiz/1.0/worklog/report?projectKey=GHJ&dateFrom=2013-10-01&dateTo=2013-11-30&accountingStatus=NOT_INVOICED |
as well as the results of this call
Code Block |
---|
{ "responseType": "OK", "fieldErrors": [], "errMsgs": [], "expand": "activityType", "data": { "responseType": "OK", "fieldErrors": [], "errMsgs": [], "data": { "worklogListRest": [ { "issue": { "clazz": "de.iconcept.icbiz.api.entities.IssueRest", "key": "GHJ-1", "id": 12402 }, "created": "2013-11-03 11:07:22", "timeSpent": 1860, "worklogId": 12828, "startDate": "2013-11-03", "calcTime": 0, "approved": true, "noChargeInfo": "no charge, just some general research", "priceListId": 27, "invoiced": false, "acticityTypeId": 4, "chargeable": true, "activityTypeName": "Design & Usability", "priceListName": "TBD", "authorUserName": "john", "clazz": "de.iconcept.icbiz.api.entities.WorklogRest", "comment": "favicon er ......12828", "startTime": "2013-11-03 11:09:18", "endTime": "2013-11-03 11:09:18" }, { "issue": { "clazz": "de.iconcept.icbiz.api.entities.IssueRest", "key": "GHJ-1", "id": 12402 }, "created": "2013-10-21 11:07:22", "timeSpent": 1860, "worklogId": 12691, "startDate": "2013-10-21", "calcTime": 0, "approved": true, "priceListId": 27, "invoiced": false, "acticityTypeId": 4, "chargeable": false, "activityTypeName": "Design & Usability", "priceListName": "TBD", "authorUserName": "john", "clazz": "de.iconcept.icbiz.api.entities.WorklogRest", "comment": "Preparing ......12691", "startTime": "2013-10-21 11:09:18", "endTime": "2013-10-21 11:09:18" }, etc. etc. ... |