Versions Compared

Key

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

...

So it returns all issues for the board and we want only issues that belong to an active sprint. Luckily the method has "jql" parameter by passing which we can apply additional JQL filtering. JQL function to get issues belonging to active sprints: sprint in openSprints () and additionally to get issues that are completed: status in (Done). Please make sure to put here status or comma separated statuses that are appropriate for your workflow and match "completed" columns of the board. The board id can be extracted from the URL shown in your browser address bar when you select the board: https://vkrupachbrizoit.atlassian.net/secure/RapidBoard.jspa?rapidView=6.

So finally we have 2 calls:

...

Please note that instead of spaces we have %20 which is encoded representation of the space character. Also we pass additional fields=id to indicate that we do not want any additional issue fields and by doing this we make the rest response smaller in size. Each of the calls returns JSON like:
 

Code Block
languagejs
{
  "expand": "names, schema",
  "startAt": 0,
  "maxResults": 50,
  "total": 1,
  "issues": [
    {
      "expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
      "id": "21101",
      "self": "https://vkrupach.atlassian.net/rest/agile/1.0/issue/21101",
      "key": "TEST-7"
    }
  ]
}

...