Stop a Linear fetch
Administrators only. Asks the fetch to stop after the page it is on. The teams it had finished stay as import jobs. One that is over is a 409 `already_finished`. The action is recorded on the security log.
View as MarkdownAuthorization
bearer In: header
Path Parameters
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/imports/linear/fetches/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel"{ "fetch": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "running", "batchId": "5579c111-9c50-47e2-af92-f16d52e63189", "namespace": "string", "options": { "includeArchived": true, "includeComments": true, "linearWorkspace": "string" }, "teams": [ { "linearTeamId": "string", "key": "string", "name": "string", "teamId": "a4ede8ba-7c0a-4485-8763-cbd9b282fbec", "state": "pending", "issues": 0, "comments": 0, "importId": "84402506-7f34-4409-8ec1-a4e0ffb6b608", "code": "string", "message": "string", "notes": [ "string" ] } ], "error": "string", "cancelRequested": true, "createdAt": "2019-08-24T14:15:22Z", "finishedAt": "2019-08-24T14:15:22Z" }}Get how a Linear fetch is going
Administrators only. Poll this while a fetch runs: each team reports its state and how many issues and comments are read, and a team that is done names the import job it became (`importId`). A fetch that is over cannot have a team still being read, so such a team is shown as `failed` with code `not_fetched`. A fetch in another workspace is a 404.
Get an import's status and its row errors
Administrators only. Poll this while an import runs: the counts move as rows are written. `errors` holds the first 100 rows that could not be written (in row order) and `errorCount` the true total. An import in another workspace is a 404. `errors` also holds the rows the plan left out, which the worker saves when it starts (the upload is deleted when the job ends, so this is the only record of which rows and why). Notes, such as a value that was dropped from an issue that was still imported, are not rows left out and are not kept. At most 500 are saved, and when the plan had more, a last entry with code `more_problems` says how many are not listed. `errors=all` returns up to 10,000 instead of 100, for downloading them. `pendingPeople` lists the people the file named as assignee who were not members of the workspace, most issues first, with how many of this import's issues are still waiting for each. Those issues were created unassigned and are handed to the person when they are added to the workspace, so a person who has since joined is no longer listed. It is empty until the import has ended, and at most 50 are listed. `pendingPeopleTotal` and `pendingIssuesTotal` count everyone and every issue still waiting, however many are listed.