Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 can also see the URL that you need to generate. Unfortunately, this product and test the responses using the GUI.

Note

Unfortunately, the JIRA REST API Browser has a bug that prevents it from working correctly with non-

...

Atlassian add-ons, so a patch is required (see below).

 

Table of Contents

JIRA REST API Browser

...

  • a defined project
  • in a defined date range
  • that have not yet been charged.

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 callresponse:

 

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"
        },
      ],
      "clazz": "de.iconcept.icbiz.api.entities.WorklogReportRest"
    },
    "clazz": "de.iconcept.icbiz.api.response.ResponseIct"
  },
  "clazz": "de.iconcept.icbiz.api.response.ResponseIct"
}

...

If a parameter supports multiple entries (keys, IDs, ...), this is done via the GUI using the "+ Parameter" option:

URL will look like follows:

...