@codecks/fetch 1.0.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -32
- package/dist/_exploration/api-requester.d.ts +3 -4
- package/dist/_exploration/api-requester.js +2 -2
- package/dist/_exploration/create-hooks.d.ts +4313 -13097
- package/dist/_exploration/create-hooks.js +1 -1
- package/dist/_exploration/loader.d.ts +2 -2
- package/dist/_exploration/loader.js +1 -1
- package/dist/_exploration/store.d.ts +5 -4
- package/dist/_exploration/store.js +1 -1
- package/dist/{collection-utils-KmtGUuXm.js → collection-utils-Ia_ahcpI.js} +2 -1
- package/dist/index-g5c30upI.d.ts +39 -0
- package/dist/index.d.ts +4 -19
- package/dist/index.js +26 -15
- package/dist/{loader-types-fd5tV0FD.d.ts → loader-types-D2Pf8qzH.d.ts} +1 -1
- package/dist/loader-utils-BZWanWDZ.d.ts +2218 -0
- package/dist/query-helpers-DndWBcMF.js +1203 -0
- package/dist/{query-type-BqQ9oX_U.d.ts → query-type-DPNcQFpZ.d.ts} +27 -13
- package/dist/store-ztk8y6Pm.d.ts +1203 -0
- package/package.json +2 -1
- package/schema/actions.md +789 -0
- package/schema/models/account.md +57 -90
- package/schema/models/attachment.md +15 -11
- package/schema/models/card.md +91 -65
- package/schema/models/cardHistory.md +15 -9
- package/schema/models/deck.md +41 -36
- package/schema/models/file.md +13 -15
- package/schema/models/handCard.md +8 -5
- package/schema/models/milestone.md +27 -22
- package/schema/models/milestoneProgress.md +9 -3
- package/schema/models/milestoneProject.md +6 -4
- package/schema/models/project.md +15 -39
- package/schema/models/projectTag.md +12 -7
- package/schema/models/queueEntry.md +12 -8
- package/schema/models/release.md +8 -6
- package/schema/models/resolvable.md +19 -15
- package/schema/models/resolvableEntry.md +16 -13
- package/schema/models/resolvableEntryReaction.md +16 -12
- package/schema/models/sprint.md +35 -25
- package/schema/models/sprintConfig.md +24 -20
- package/schema/models/sprintConfigProgress.md +9 -3
- package/schema/models/sprintProgress.md +9 -3
- package/schema/models/sprintProject.md +7 -5
- package/schema/models/user.md +15 -56
- package/schema/models/workflowItem.md +47 -31
- package/schema/overview.md +40 -93
- package/schema/query-syntax.md +1 -1
- package/schema/types.md +103 -0
- package/dist/_root-BW9uzB79.d.ts +0 -34
- package/dist/index-k-KPWV9R.d.ts +0 -2680
- package/dist/loader-utils-hvdC-xsQ.d.ts +0 -42
- package/dist/query-helpers-iX1fiqLv.js +0 -3062
- package/dist/store-BvEJzUVp.d.ts +0 -2667
- package/schema/models/accountOnboarding.md +0 -15
- package/schema/models/accountOnboardingStep.md +0 -14
- package/schema/models/accountRole.md +0 -19
- package/schema/models/accountUserAchievement.md +0 -17
- package/schema/models/accountUserSetting.md +0 -20
- package/schema/models/activeTimeTracker.md +0 -19
- package/schema/models/activity.md +0 -30
- package/schema/models/affiliateCode.md +0 -30
- package/schema/models/affiliateCodeStat.md +0 -19
- package/schema/models/app.md +0 -10
- package/schema/models/appInstallation.md +0 -19
- package/schema/models/assigneeAssignment.md +0 -18
- package/schema/models/assigneeDeckAssignment.md +0 -20
- package/schema/models/autoFinishedTimeTrackingSegment.md +0 -20
- package/schema/models/cardDiffNotification.md +0 -22
- package/schema/models/cardOrder.md +0 -17
- package/schema/models/cardOrderInDeck.md +0 -18
- package/schema/models/cardPreset.md +0 -19
- package/schema/models/cardSubscription.md +0 -19
- package/schema/models/cardUpvote.md +0 -21
- package/schema/models/cardsEffortHistory.md +0 -9
- package/schema/models/cardsFinishedHistory.md +0 -16
- package/schema/models/cardsStatusHistory.md +0 -9
- package/schema/models/cardsTimeToFinished.md +0 -18
- package/schema/models/dailyDiscordGuildVoteMembership.md +0 -15
- package/schema/models/dailyPublicProjectMembership.md +0 -15
- package/schema/models/deckAssignment.md +0 -18
- package/schema/models/deckGuardian.md +0 -17
- package/schema/models/deckSubscription.md +0 -18
- package/schema/models/discordGuild.md +0 -30
- package/schema/models/discordMember.md +0 -21
- package/schema/models/discordProjectNotification.md +0 -19
- package/schema/models/discordSlashCommand.md +0 -28
- package/schema/models/dueCard.md +0 -18
- package/schema/models/integration.md +0 -23
- package/schema/models/invoice.md +0 -21
- package/schema/models/lastSeenCardUpvote.md +0 -17
- package/schema/models/pinnedMilestone.md +0 -22
- package/schema/models/projectOrder.md +0 -18
- package/schema/models/projectSelection.md +0 -18
- package/schema/models/projectUser.md +0 -18
- package/schema/models/projectUserSetting.md +0 -15
- package/schema/models/publicProjectInfo.md +0 -20
- package/schema/models/publicProjectMembership.md +0 -17
- package/schema/models/publicProjectVisit.md +0 -16
- package/schema/models/queueSelection.md +0 -19
- package/schema/models/resolvableEntryHistory.md +0 -20
- package/schema/models/resolvableNotification.md +0 -30
- package/schema/models/resolvableParticipant.md +0 -25
- package/schema/models/resolvableParticipantHistory.md +0 -23
- package/schema/models/savedSearch.md +0 -18
- package/schema/models/stripeAccountSync.md +0 -29
- package/schema/models/timeTrackingSegment.md +0 -24
- package/schema/models/timeTrackingSum.md +0 -18
- package/schema/models/userDismissedHint.md +0 -16
- package/schema/models/userEmail.md +0 -18
- package/schema/models/userInvitation.md +0 -20
- package/schema/models/userInviteCode.md +0 -23
- package/schema/models/userOnboarding.md +0 -14
- package/schema/models/userProjectAccess.md +0 -17
- package/schema/models/userReportEmail.md +0 -19
- package/schema/models/userReportSetting.md +0 -23
- package/schema/models/userReportToken.md +0 -18
- package/schema/models/userTag.md +0 -18
- package/schema/models/visionBoard.md +0 -21
- package/schema/models/visionBoardQuery.md +0 -22
- package/schema/models/wizard.md +0 -19
- package/schema/models/workflowItemHistory.md +0 -18
|
@@ -0,0 +1,789 @@
|
|
|
1
|
+
# Actions
|
|
2
|
+
|
|
3
|
+
Every change goes through an action, sent with `dispatch`. It returns the action's response, or `undefined` for an action without one.
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
const {id, accountSeq} = await dispatch("cards/create", {content: "Fix login", deckId});
|
|
7
|
+
await dispatch("cards/update", {id, status: "done"});
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
An enum in the params lists only the values the API accepts, unlike the open enums of the models. A param that is optional and nullable has three meanings: left out, it stays as it is; `null` clears it; a value sets it.
|
|
11
|
+
|
|
12
|
+
## bookmarks/addCards
|
|
13
|
+
|
|
14
|
+
Bookmarks cards for a user, at the end of their bookmarks. Cards that are already bookmarked move to the end.
|
|
15
|
+
|
|
16
|
+
Requires `handCard:writeOwn` or `handCard:writeAny`, depending on the call.
|
|
17
|
+
|
|
18
|
+
Params:
|
|
19
|
+
|
|
20
|
+
- `ids`: [`CardId`](models/card.md)`[]`
|
|
21
|
+
- `userId`: [`UserId`](models/user.md)
|
|
22
|
+
|
|
23
|
+
Response: none.
|
|
24
|
+
|
|
25
|
+
## bookmarks/removeCards
|
|
26
|
+
|
|
27
|
+
Removes cards from a user's bookmarks.
|
|
28
|
+
|
|
29
|
+
Requires `handCard:writeOwn` or `handCard:writeAny`, depending on the call.
|
|
30
|
+
|
|
31
|
+
Params:
|
|
32
|
+
|
|
33
|
+
- `ids`: [`CardId`](models/card.md)`[]`
|
|
34
|
+
- `userId`: [`UserId`](models/user.md)
|
|
35
|
+
|
|
36
|
+
Response: none.
|
|
37
|
+
|
|
38
|
+
## bookmarks/setOrders
|
|
39
|
+
|
|
40
|
+
Moves cards to the top of a user's bookmarks, in the given order. The other bookmarks follow in their current order. Cards that aren't bookmarked yet get bookmarked.
|
|
41
|
+
|
|
42
|
+
Requires `handCard:writeOwn` or `handCard:writeAny`, depending on the call.
|
|
43
|
+
|
|
44
|
+
Params:
|
|
45
|
+
|
|
46
|
+
- `cardIds`: [`CardId`](models/card.md)`[]`
|
|
47
|
+
- `userId`: [`UserId`](models/user.md)
|
|
48
|
+
|
|
49
|
+
Response: none.
|
|
50
|
+
|
|
51
|
+
## cardOrders/addAfter
|
|
52
|
+
|
|
53
|
+
Puts cards into a manual order right after `targetId`, in the order of `cardIds`, and into the zone `label`.
|
|
54
|
+
|
|
55
|
+
**preview**: this action may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
56
|
+
|
|
57
|
+
Requires `cardOrder:write`.
|
|
58
|
+
|
|
59
|
+
Params:
|
|
60
|
+
|
|
61
|
+
- `targetId`: [`CardId`](models/card.md)` | null`
|
|
62
|
+
`null` puts the cards at the end.
|
|
63
|
+
- `cardIds`: [`CardId`](models/card.md)`[]`
|
|
64
|
+
- `context`: `"milestone" | "deck" | "sprint"`
|
|
65
|
+
Which manual order to change: the one of the cards' deck, milestone or run. A card has one position in each.
|
|
66
|
+
- `label`: `string | null`
|
|
67
|
+
The zone, one of the `manualOrderLabels` of the deck, milestone or run. `null` is the zone without a name.
|
|
68
|
+
|
|
69
|
+
Response: none.
|
|
70
|
+
|
|
71
|
+
## cardOrders/addBefore
|
|
72
|
+
|
|
73
|
+
Puts cards into a manual order right before `targetId`, in the order of `cardIds`, and into the zone `label`.
|
|
74
|
+
|
|
75
|
+
**preview**: this action may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
76
|
+
|
|
77
|
+
Requires `cardOrder:write`.
|
|
78
|
+
|
|
79
|
+
Params:
|
|
80
|
+
|
|
81
|
+
- `targetId`: [`CardId`](models/card.md)` | null`
|
|
82
|
+
`null` puts the cards at the start.
|
|
83
|
+
- `cardIds`: [`CardId`](models/card.md)`[]`
|
|
84
|
+
- `context`: `"milestone" | "deck" | "sprint"`
|
|
85
|
+
Which manual order to change: the one of the cards' deck, milestone or run. A card has one position in each.
|
|
86
|
+
- `label`: `string | null`
|
|
87
|
+
The zone, one of the `manualOrderLabels` of the deck, milestone or run. `null` is the zone without a name.
|
|
88
|
+
|
|
89
|
+
Response: none.
|
|
90
|
+
|
|
91
|
+
## cardOrders/updateLabel
|
|
92
|
+
|
|
93
|
+
Moves cards into another zone of a manual order and keeps their position. Cards that have no position in that order yet are skipped.
|
|
94
|
+
|
|
95
|
+
**preview**: this action may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
96
|
+
|
|
97
|
+
Requires `cardOrder:write`.
|
|
98
|
+
|
|
99
|
+
Params:
|
|
100
|
+
|
|
101
|
+
- `cardIds`: [`CardId`](models/card.md)`[]`
|
|
102
|
+
- `context`: `"milestone" | "deck" | "sprint"`
|
|
103
|
+
Which manual order to change: the one of the cards' deck, milestone or run. A card has one position in each.
|
|
104
|
+
- `label`: `string | null`
|
|
105
|
+
The zone, one of the `manualOrderLabels` of the deck, milestone or run. `null` is the zone without a name.
|
|
106
|
+
|
|
107
|
+
Response: none.
|
|
108
|
+
|
|
109
|
+
## cards/bulkUpdate
|
|
110
|
+
|
|
111
|
+
Sets the same values on every card in `ids`. Look at `cards/update` for the property details.
|
|
112
|
+
|
|
113
|
+
Requires `card:write`.
|
|
114
|
+
|
|
115
|
+
Params:
|
|
116
|
+
|
|
117
|
+
- `ids`: [`CardId`](models/card.md)`[]`
|
|
118
|
+
- `priority`: `"a" | "b" | "c" | null` (optional)
|
|
119
|
+
- `effort`: `number | null` (optional)
|
|
120
|
+
- `status`: `"not_started" | "started" | "done"` (optional)
|
|
121
|
+
- `assigneeId`: [`UserId`](models/user.md)` | null` (optional)
|
|
122
|
+
- `deckId`: [`DeckId`](models/deck.md) (optional)
|
|
123
|
+
- `visibility`: `"default" | "archived" | "deleted"` (optional)
|
|
124
|
+
- `milestoneId`: [`MilestoneId`](models/milestone.md)` | null` (optional)
|
|
125
|
+
- `sprintId`: [`SprintId`](models/sprint.md)` | null` (optional)
|
|
126
|
+
- `dueDate`: `string | null` (optional)
|
|
127
|
+
`YYYY-MM-DD`, or `null` to remove it. Fails unless the organization's plan includes due dates.
|
|
128
|
+
- `isDoc`: `boolean` (optional)
|
|
129
|
+
- `addMasterTag`: `string` (optional)
|
|
130
|
+
Adds this tag to every card's `masterTags`.
|
|
131
|
+
- `removeMasterTag`: `string` (optional)
|
|
132
|
+
Removes this tag from every card, ignoring case.
|
|
133
|
+
- `parentCardId`: [`CardId`](models/card.md)` | null` (optional)
|
|
134
|
+
|
|
135
|
+
Response: none.
|
|
136
|
+
|
|
137
|
+
## cards/copy
|
|
138
|
+
|
|
139
|
+
Copies each card into a deck, as `not_started` and with the same `content`. A copied sub card is added to its hero card right after the original.
|
|
140
|
+
|
|
141
|
+
**preview**: this action may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
142
|
+
|
|
143
|
+
Requires `card:write`.
|
|
144
|
+
|
|
145
|
+
Params:
|
|
146
|
+
|
|
147
|
+
- `ids`: [`CardId`](models/card.md)`[]`
|
|
148
|
+
- `props`: `("effort" | "priority" | "assigneeId" | "masterTags" | "attachments" | "milestoneId" | "sprintId")[]`
|
|
149
|
+
The fields to copy besides `content`.
|
|
150
|
+
- `target`: `string`
|
|
151
|
+
The id of the deck to copy into.
|
|
152
|
+
|
|
153
|
+
Response: none.
|
|
154
|
+
|
|
155
|
+
## cards/create
|
|
156
|
+
|
|
157
|
+
Creates a card as `not_started`. The first line of `content` becomes its `title`. Everyone mentioned in `content` is subscribed to the card.
|
|
158
|
+
|
|
159
|
+
Requires `card:write`.
|
|
160
|
+
|
|
161
|
+
Params:
|
|
162
|
+
|
|
163
|
+
- `content`: `string`
|
|
164
|
+
Markdown. Its first line becomes the card's `title`.
|
|
165
|
+
- `priority`: `"a" | "b" | "c" | null` (optional)
|
|
166
|
+
- `effort`: `number | null` (optional)
|
|
167
|
+
- `assigneeId`: [`UserId`](models/user.md)` | null` (optional)
|
|
168
|
+
- `deckId`: [`DeckId`](models/deck.md)` | null`
|
|
169
|
+
`null` creates a private card, and bookmarks it for you.
|
|
170
|
+
- `masterTags`: `string[]` (optional)
|
|
171
|
+
Project tags, on top of those written as `#tag` in `content`.
|
|
172
|
+
- `milestoneId`: [`MilestoneId`](models/milestone.md)` | null` (optional)
|
|
173
|
+
- `sprintId`: [`SprintId`](models/sprint.md)` | null` (optional)
|
|
174
|
+
- `parentCardId`: [`CardId`](models/card.md)` | null` (optional)
|
|
175
|
+
Adds the card as the last sub card of this hero card.
|
|
176
|
+
- `dueDate`: `string | null` (optional)
|
|
177
|
+
`YYYY-MM-DD`. Fails unless the organization's plan includes due dates.
|
|
178
|
+
- `isDoc`: `boolean` (optional)
|
|
179
|
+
- `addAsBookmark`: `boolean` (optional)
|
|
180
|
+
Bookmarks the card for you.
|
|
181
|
+
- `putInQueue`: `boolean` (optional)
|
|
182
|
+
Adds the card to its assignee's Hand, or to yours when it has none. Fails when that Hand has no free slot (`account.maxHandSlotCount`).
|
|
183
|
+
- `subscribeCreator`: `boolean` (optional)
|
|
184
|
+
Subscribes you to the card, so you're notified about its changes and comments.
|
|
185
|
+
|
|
186
|
+
Response:
|
|
187
|
+
|
|
188
|
+
- `id`: [`CardId`](models/card.md)
|
|
189
|
+
- `accountSeq`: `number`
|
|
190
|
+
The card's number, see `card.accountSeq`.
|
|
191
|
+
|
|
192
|
+
## cards/createMany
|
|
193
|
+
|
|
194
|
+
Creates cards in one deck and returns their ids in the same order. Unlike `cards/create`, it doesn't subscribe you to them.
|
|
195
|
+
|
|
196
|
+
Requires `card:write`.
|
|
197
|
+
|
|
198
|
+
Params:
|
|
199
|
+
|
|
200
|
+
- `cards`: `{content: string; priority?: "a" | "b" | "c" | null; effort?: number | null; assigneeId?: UserId | null; isDoc?: boolean; visibility?: "archived" | "default" | "deleted"; status?: "not_started" | "started" | "done" | null}[]` (uses [`UserId`](models/user.md))
|
|
201
|
+
The first line of each `content` becomes the card's `title`. `status` defaults to `not_started`, `visibility` to `default`.
|
|
202
|
+
- `deckId`: [`DeckId`](models/deck.md)
|
|
203
|
+
- `parentCardId`: [`CardId`](models/card.md)` | null` (optional)
|
|
204
|
+
Adds the cards as the last sub cards of this hero card.
|
|
205
|
+
|
|
206
|
+
Response:
|
|
207
|
+
|
|
208
|
+
- `cards`: `{id: CardId; accountSeq: number}[]` (uses [`CardId`](models/card.md))
|
|
209
|
+
|
|
210
|
+
## cards/update
|
|
211
|
+
|
|
212
|
+
Changes the given fields of a card. Some writes change other fields too: `content` sets `title` and `tags`, and giving a started card another assignee sets it back to `not_started`.
|
|
213
|
+
|
|
214
|
+
Requires `card:write`.
|
|
215
|
+
|
|
216
|
+
Params:
|
|
217
|
+
|
|
218
|
+
- `id`: [`CardId`](models/card.md)
|
|
219
|
+
- `content`: `string` (optional)
|
|
220
|
+
Markdown. Its first line becomes the card's `title`.
|
|
221
|
+
- `priority`: `"a" | "b" | "c" | null` (optional)
|
|
222
|
+
- `effort`: `number | null` (optional)
|
|
223
|
+
- `status`: `"not_started" | "started" | "done"` (optional)
|
|
224
|
+
A Hero Card can't be started.
|
|
225
|
+
- `assigneeId`: [`UserId`](models/user.md)` | null` (optional)
|
|
226
|
+
- `deckId`: [`DeckId`](models/deck.md) (optional)
|
|
227
|
+
- `masterTags`: `string[]` (optional)
|
|
228
|
+
Replaces the project tags. Those written as `#tag` in `content` stay.
|
|
229
|
+
- `visibility`: `"default" | "archived" | "deleted"` (optional)
|
|
230
|
+
Archiving or deleting a started card sets it back to `not_started`. Deleting also removes its dependencies.
|
|
231
|
+
- `milestoneId`: [`MilestoneId`](models/milestone.md)` | null` (optional)
|
|
232
|
+
- `sprintId`: [`SprintId`](models/sprint.md)` | null` (optional)
|
|
233
|
+
- `parentCardId`: [`CardId`](models/card.md)` | null` (optional)
|
|
234
|
+
The hero card to make this card a sub card of.
|
|
235
|
+
- `childCards`: [`CardId`](models/card.md)`[] | null` (optional) — **preview**
|
|
236
|
+
A hero card's sub cards, in order.
|
|
237
|
+
- `inDeps`: [`CardId`](models/card.md)`[]` (optional) — **preview**
|
|
238
|
+
The cards that have to be done before this one. Fails when it would make a cycle.
|
|
239
|
+
- `outDeps`: [`CardId`](models/card.md)`[]` (optional) — **preview**
|
|
240
|
+
The cards that are blocked by this one.
|
|
241
|
+
- `dueDate`: `string | null` (optional)
|
|
242
|
+
`YYYY-MM-DD`, or `null` to remove it. Fails unless the organization's plan includes due dates.
|
|
243
|
+
- `isDoc`: `boolean` (optional)
|
|
244
|
+
|
|
245
|
+
Response: none.
|
|
246
|
+
|
|
247
|
+
## cards/updateMany
|
|
248
|
+
|
|
249
|
+
Updates several cards, each with its own values. Cards that don't exist or that you can't see are skipped.
|
|
250
|
+
|
|
251
|
+
Requires `card:write`.
|
|
252
|
+
|
|
253
|
+
Params:
|
|
254
|
+
|
|
255
|
+
- `cards`: `{id: CardId; content?: string | null; title?: string | null; priority?: "a" | "b" | "c" | null; effort?: number | null; assigneeId?: UserId | null; isDoc?: boolean; visibility?: "archived" | "default" | "deleted"; status?: "not_started" | "started" | "done" | null; masterTags?: string[]}[]` (uses [`CardId`](models/card.md), [`UserId`](models/user.md))
|
|
256
|
+
Each needs a `content` or a `title`. With both, the content becomes the title, an empty line and `content`. A `title` alone replaces the first line of the current content. Project tags in `masterTags` that the project doesn't have yet are created.
|
|
257
|
+
|
|
258
|
+
Response: none.
|
|
259
|
+
|
|
260
|
+
## decks/addToSpaceAfter
|
|
261
|
+
|
|
262
|
+
Moves decks into a project's space, right after `targetId` and in the order of `deckIds`. Decks from another project move with their cards.
|
|
263
|
+
|
|
264
|
+
**preview**: this action may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
265
|
+
|
|
266
|
+
Requires `deck:write`.
|
|
267
|
+
|
|
268
|
+
Params:
|
|
269
|
+
|
|
270
|
+
- `deckIds`: [`DeckId`](models/deck.md)`[]`
|
|
271
|
+
- `targetId`: [`DeckId`](models/deck.md)` | null`
|
|
272
|
+
`null` puts the decks at the end of the space.
|
|
273
|
+
- `targetProjectId`: [`ProjectId`](models/project.md)
|
|
274
|
+
- `targetSpaceId`: `number`
|
|
275
|
+
One of the ids in `project.spaces`.
|
|
276
|
+
|
|
277
|
+
Response: none.
|
|
278
|
+
|
|
279
|
+
## decks/addToSpaceBefore
|
|
280
|
+
|
|
281
|
+
Moves decks into a project's space, right before `targetId` and in the order of `deckIds`. Decks from another project move with their cards.
|
|
282
|
+
|
|
283
|
+
**preview**: this action may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
284
|
+
|
|
285
|
+
Requires `deck:write`.
|
|
286
|
+
|
|
287
|
+
Params:
|
|
288
|
+
|
|
289
|
+
- `deckIds`: [`DeckId`](models/deck.md)`[]`
|
|
290
|
+
- `targetId`: [`DeckId`](models/deck.md)` | null`
|
|
291
|
+
`null` puts the decks at the start of the space.
|
|
292
|
+
- `targetProjectId`: [`ProjectId`](models/project.md)
|
|
293
|
+
- `targetSpaceId`: `number`
|
|
294
|
+
One of the ids in `project.spaces`.
|
|
295
|
+
|
|
296
|
+
Response: none.
|
|
297
|
+
|
|
298
|
+
## decks/create
|
|
299
|
+
|
|
300
|
+
Creates a deck at the end of the project's first space. `deckType` defaults to that space's `defaultDeckType`.
|
|
301
|
+
|
|
302
|
+
Requires `deck:write`.
|
|
303
|
+
|
|
304
|
+
Params:
|
|
305
|
+
|
|
306
|
+
- `title`: `string`
|
|
307
|
+
- `projectId`: [`ProjectId`](models/project.md)
|
|
308
|
+
- `coverColor`: `string | null` (optional) — **preview**
|
|
309
|
+
A hex color like `#ff8800`.
|
|
310
|
+
- `deckType`: `"task" | "hero" | "doc" | "mixed"` (optional)
|
|
311
|
+
|
|
312
|
+
Response:
|
|
313
|
+
|
|
314
|
+
- `id`: [`DeckId`](models/deck.md)
|
|
315
|
+
|
|
316
|
+
## decks/delete
|
|
317
|
+
|
|
318
|
+
Sets `isDeleted` on the deck and archives its cards, their sub cards in other decks, and the journey steps that create cards in this deck.
|
|
319
|
+
|
|
320
|
+
Requires `deck:delete`.
|
|
321
|
+
|
|
322
|
+
Params:
|
|
323
|
+
|
|
324
|
+
- `id`: [`DeckId`](models/deck.md)
|
|
325
|
+
|
|
326
|
+
Response: none.
|
|
327
|
+
|
|
328
|
+
## decks/renameZone
|
|
329
|
+
|
|
330
|
+
Renames a zone of the deck's manual order. The cards in that zone move to the new name with it, including archived ones.
|
|
331
|
+
|
|
332
|
+
**preview**: this action may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
333
|
+
|
|
334
|
+
Requires `deck:write` and `cardOrder:write`.
|
|
335
|
+
|
|
336
|
+
Params:
|
|
337
|
+
|
|
338
|
+
- `id`: [`DeckId`](models/deck.md)
|
|
339
|
+
- `label`: `string | null`
|
|
340
|
+
The zone to rename, one of `manualOrderLabels`. `null` is the zone without a name.
|
|
341
|
+
- `newLabel`: `string`
|
|
342
|
+
Trimmed. Fails if the deck already has a zone with that name.
|
|
343
|
+
|
|
344
|
+
Response: none.
|
|
345
|
+
|
|
346
|
+
## decks/update
|
|
347
|
+
|
|
348
|
+
Requires `deck:write` or `project:write`, depending on the call.
|
|
349
|
+
|
|
350
|
+
Params:
|
|
351
|
+
|
|
352
|
+
- `id`: [`DeckId`](models/deck.md)
|
|
353
|
+
- `milestoneId`: [`MilestoneId`](models/milestone.md)` | null` (optional)
|
|
354
|
+
Also puts the deck's cards that aren't archived or deleted into this milestone. `null` only takes it from cards that were in the deck's old milestone.
|
|
355
|
+
- `title`: `string` (optional)
|
|
356
|
+
- `description`: `string` (optional)
|
|
357
|
+
- `handSyncEnabled`: `boolean` (optional) — **preview**
|
|
358
|
+
Turning it on adds the deck's assigned cards that aren't done to their assignee's Hand.
|
|
359
|
+
- `defaultProjectTagId`: [`ProjectTagId`](models/projectTag.md)` | null` (optional)
|
|
360
|
+
The deck's auto tag. Changing it removes the old tag from all of the deck's cards and adds the new one.
|
|
361
|
+
- `manualOrderLabels`: `(string | null)[]` (optional) — **preview**
|
|
362
|
+
The zone names are trimmed, and duplicates are dropped. Renaming a zone here leaves its cards with the old name; use `decks/renameZone` instead.
|
|
363
|
+
- `coverColor`: `string | null` (optional) — **preview**
|
|
364
|
+
A hex color like `#ff8800`.
|
|
365
|
+
- `deckType`: `"task" | "hero" | "doc" | "mixed"` (optional)
|
|
366
|
+
Switching to `hero` sets the deck's started cards back to `not_started`. Switching to `hero` or `doc` fails while journey steps create their cards in this deck.
|
|
367
|
+
|
|
368
|
+
Response: none.
|
|
369
|
+
|
|
370
|
+
## decks/updateGuardians
|
|
371
|
+
|
|
372
|
+
Sets the deck's guardians to exactly `userIds` and updates `hasGuardians`. Fails unless the organization's plan includes guardians or `userIds` is empty.
|
|
373
|
+
|
|
374
|
+
**preview**: this action may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
375
|
+
|
|
376
|
+
Requires `deckGuardian:write`.
|
|
377
|
+
|
|
378
|
+
Params:
|
|
379
|
+
|
|
380
|
+
- `id`: [`DeckId`](models/deck.md)
|
|
381
|
+
- `userIds`: [`UserId`](models/user.md)`[]`
|
|
382
|
+
|
|
383
|
+
Response: none.
|
|
384
|
+
|
|
385
|
+
## handQueue/addCardsToHand
|
|
386
|
+
|
|
387
|
+
Adds cards to the end of a user's Hand. Cards that are done, deleted, archived or already in that Hand are skipped. A card without an owner gets the user as owner. Fails when the Hand doesn't have enough free slots (`account.maxHandSlotCount`).
|
|
388
|
+
|
|
389
|
+
Requires `queueEntry:write`.
|
|
390
|
+
|
|
391
|
+
Params:
|
|
392
|
+
|
|
393
|
+
- `cardIds`: [`CardId`](models/card.md)`[]`
|
|
394
|
+
- `userId`: [`UserId`](models/user.md)
|
|
395
|
+
|
|
396
|
+
Response:
|
|
397
|
+
|
|
398
|
+
- `queueEntries`: `{id: QueueEntryId; cardId: CardId}[]` (uses [`QueueEntryId`](models/queueEntry.md), [`CardId`](models/card.md))
|
|
399
|
+
The new entries, one for each added card.
|
|
400
|
+
|
|
401
|
+
## handQueue/removeCards
|
|
402
|
+
|
|
403
|
+
Removes cards from a user's Hand, or from every Hand when `userId` is left out. This includes entries in the done pile.
|
|
404
|
+
|
|
405
|
+
Requires `queueEntry:write`.
|
|
406
|
+
|
|
407
|
+
Params:
|
|
408
|
+
|
|
409
|
+
- `cardIds`: [`CardId`](models/card.md)`[]`
|
|
410
|
+
- `userId`: [`UserId`](models/user.md) (optional)
|
|
411
|
+
|
|
412
|
+
Response: none.
|
|
413
|
+
|
|
414
|
+
## handQueue/setCardOrders
|
|
415
|
+
|
|
416
|
+
Sets the order of a user's Hand and can add cards to it. A card added this way that has no owner gets the user as owner. Fails when the Hand doesn't have enough free slots for the added cards (`account.maxHandSlotCount`).
|
|
417
|
+
|
|
418
|
+
Requires `queueEntry:write`.
|
|
419
|
+
|
|
420
|
+
Params:
|
|
421
|
+
|
|
422
|
+
- `cardIds`: [`CardId`](models/card.md)`[]`
|
|
423
|
+
The new order from the first card on. Cards of the Hand that are missing here follow in their current order. Cards that are neither in the Hand nor in `draggedCardIds` are ignored.
|
|
424
|
+
- `draggedCardIds`: [`CardId`](models/card.md)`[]`
|
|
425
|
+
The cards that moved, from within the Hand or from outside. Cards from outside are added. Nothing changes if it is empty or none of them can be in a Hand, e.g. because they are deleted.
|
|
426
|
+
- `userId`: [`UserId`](models/user.md)
|
|
427
|
+
|
|
428
|
+
Response:
|
|
429
|
+
|
|
430
|
+
- `queueEntries`: `{id: QueueEntryId; cardId: CardId}[]` (uses [`QueueEntryId`](models/queueEntry.md), [`CardId`](models/card.md))
|
|
431
|
+
The Hand's entries after the change.
|
|
432
|
+
|
|
433
|
+
## milestones/create
|
|
434
|
+
|
|
435
|
+
Creates a milestone for the projects in `projectIds`, or for all projects with `isGlobal`.
|
|
436
|
+
|
|
437
|
+
Requires `milestone:write`.
|
|
438
|
+
|
|
439
|
+
Params:
|
|
440
|
+
|
|
441
|
+
- `accountId`: [`AccountId`](models/account.md)
|
|
442
|
+
- `name`: `string`
|
|
443
|
+
- `description`: `string` (optional)
|
|
444
|
+
- `color`: `"gray" | "brown" | "yellow" | "red" | "pink" | "blue" | "green"`
|
|
445
|
+
- `date`: `string`
|
|
446
|
+
`YYYY-MM-DD`.
|
|
447
|
+
- `startDate`: `string | null` (optional)
|
|
448
|
+
`YYYY-MM-DD`.
|
|
449
|
+
- `isGlobal`: `boolean`
|
|
450
|
+
- `projectIds`: [`ProjectId`](models/project.md)`[] | null`
|
|
451
|
+
Ignored when `isGlobal` is set.
|
|
452
|
+
|
|
453
|
+
Response:
|
|
454
|
+
|
|
455
|
+
- `id`: [`MilestoneId`](models/milestone.md)
|
|
456
|
+
- `accountSeq`: `number`
|
|
457
|
+
The milestone's number, see `milestone.accountSeq`.
|
|
458
|
+
|
|
459
|
+
## milestones/delete
|
|
460
|
+
|
|
461
|
+
Marks a milestone as deleted (`isDeleted`). It's removed from all its cards and decks, and nobody has it pinned anymore.
|
|
462
|
+
|
|
463
|
+
Requires `milestone:write`.
|
|
464
|
+
|
|
465
|
+
Params:
|
|
466
|
+
|
|
467
|
+
- `id`: [`MilestoneId`](models/milestone.md)
|
|
468
|
+
|
|
469
|
+
Response: none.
|
|
470
|
+
|
|
471
|
+
## milestones/pin
|
|
472
|
+
|
|
473
|
+
Pins a milestone for a user. The web app shows it in the user's Hand. A user has one pinned milestone per organization, so pinning another one replaces it.
|
|
474
|
+
|
|
475
|
+
**preview**: this action may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
476
|
+
|
|
477
|
+
Requires `pinnedMilestone:writeOwn` or `pinnedMilestone:writeAny`, depending on the call.
|
|
478
|
+
|
|
479
|
+
Params:
|
|
480
|
+
|
|
481
|
+
- `milestoneId`: [`MilestoneId`](models/milestone.md)` | null`
|
|
482
|
+
`null` removes the user's pin.
|
|
483
|
+
- `userId`: [`UserId`](models/user.md)
|
|
484
|
+
The token's own user. For a personal token, that's you.
|
|
485
|
+
|
|
486
|
+
Response: none.
|
|
487
|
+
|
|
488
|
+
## milestones/renameZone
|
|
489
|
+
|
|
490
|
+
Renames a zone of the milestone's manual order. The cards in that zone move to the new name with it, including archived ones.
|
|
491
|
+
|
|
492
|
+
**preview**: this action may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
493
|
+
|
|
494
|
+
Requires `milestone:write` and `cardOrder:write`.
|
|
495
|
+
|
|
496
|
+
Params:
|
|
497
|
+
|
|
498
|
+
- `id`: [`MilestoneId`](models/milestone.md)
|
|
499
|
+
- `label`: `string | null`
|
|
500
|
+
The zone to rename, one of `manualOrderLabels`. `null` is the zone without a name.
|
|
501
|
+
- `newLabel`: `string`
|
|
502
|
+
Trimmed. Fails if the milestone already has a zone with that name.
|
|
503
|
+
|
|
504
|
+
Response: none.
|
|
505
|
+
|
|
506
|
+
## milestones/update
|
|
507
|
+
|
|
508
|
+
Requires `milestone:write`.
|
|
509
|
+
|
|
510
|
+
Params:
|
|
511
|
+
|
|
512
|
+
- `id`: [`MilestoneId`](models/milestone.md)
|
|
513
|
+
- `name`: `string` (optional)
|
|
514
|
+
- `description`: `string` (optional)
|
|
515
|
+
- `color`: `"gray" | "brown" | "yellow" | "red" | "pink" | "blue" | "green"` (optional)
|
|
516
|
+
- `date`: `string` (optional)
|
|
517
|
+
`YYYY-MM-DD`.
|
|
518
|
+
- `startDate`: `string | null` (optional)
|
|
519
|
+
`YYYY-MM-DD`, or `null` to remove it.
|
|
520
|
+
- `handSyncEnabled`: `boolean` (optional) — **preview**
|
|
521
|
+
Turning it on also adds the milestone's cards that are not done and have an assignee to the assignee's Hand.
|
|
522
|
+
- `isGlobal`: `boolean` (optional)
|
|
523
|
+
`true` links the milestone to all projects. `false` needs `projectIds` if the milestone is global.
|
|
524
|
+
- `projectIds`: [`ProjectId`](models/project.md)`[] | null` (optional)
|
|
525
|
+
Replaces the milestone's projects and makes it non-global. Ignored with `isGlobal: true`. Cards and decks of projects that are removed lose the milestone.
|
|
526
|
+
- `manualOrderLabels`: `(string | null)[]` (optional) — **preview**
|
|
527
|
+
Labels are trimmed, and duplicates are removed. Renaming a zone here leaves its cards with the old name; use `milestones/renameZone` instead.
|
|
528
|
+
- `userCapacities`: `{[key: string]: number}` (optional) — **preview**
|
|
529
|
+
Replaces all capacities. Fails with a value above 0 unless the organization's plan includes capacity tracking.
|
|
530
|
+
|
|
531
|
+
Response: none.
|
|
532
|
+
|
|
533
|
+
## resolvables/addReaction
|
|
534
|
+
|
|
535
|
+
Adds your reaction to a comment. Fails if you already reacted with the same emoji.
|
|
536
|
+
|
|
537
|
+
**preview**: this action may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
538
|
+
|
|
539
|
+
Requires `resolvableEntryReaction:writeOwn`.
|
|
540
|
+
|
|
541
|
+
Params:
|
|
542
|
+
|
|
543
|
+
- `entryId`: [`ResolvableEntryId`](models/resolvableEntry.md)
|
|
544
|
+
- `value`: `{type: "emoji"; value: string}`
|
|
545
|
+
`value` is the emoji character itself, like `👍`.
|
|
546
|
+
|
|
547
|
+
Response:
|
|
548
|
+
|
|
549
|
+
- `id`: [`ResolvableEntryReactionId`](models/resolvableEntryReaction.md)
|
|
550
|
+
|
|
551
|
+
## resolvables/close
|
|
552
|
+
|
|
553
|
+
Closes a comment thread. Closing a `block` or `review` thread ends the card's blocked or in review state. In a deck with guardians, only a guardian, a producer or an admin may close a `review`, unless the guardians in it approved and you are the card's assignee.
|
|
554
|
+
|
|
555
|
+
Requires `resolvable:write` or `card:write`, depending on the call.
|
|
556
|
+
|
|
557
|
+
Params:
|
|
558
|
+
|
|
559
|
+
- `id`: [`ResolvableId`](models/resolvable.md)
|
|
560
|
+
- `markCardDone`: `boolean` (optional)
|
|
561
|
+
Also sets the card's `status` to `done`.
|
|
562
|
+
|
|
563
|
+
Response:
|
|
564
|
+
|
|
565
|
+
- `cardId`: [`CardId`](models/card.md)
|
|
566
|
+
|
|
567
|
+
## resolvables/comment
|
|
568
|
+
|
|
569
|
+
Adds a comment to a thread. You and everyone mentioned in `content` join the thread, even if you opted out before. The other participants who didn't opt out are notified.
|
|
570
|
+
|
|
571
|
+
Requires `resolvableEntry:writeOwn`.
|
|
572
|
+
|
|
573
|
+
Params:
|
|
574
|
+
|
|
575
|
+
- `resolvableId`: [`ResolvableId`](models/resolvable.md)
|
|
576
|
+
- `content`: `string`
|
|
577
|
+
Markdown. `@name` mentions of the organization's users are stored as `@[userId:<id>]`.
|
|
578
|
+
|
|
579
|
+
Response:
|
|
580
|
+
|
|
581
|
+
- `id`: [`ResolvableEntryId`](models/resolvableEntry.md)
|
|
582
|
+
|
|
583
|
+
## resolvables/create
|
|
584
|
+
|
|
585
|
+
Starts a comment thread on a card with its first comment. You, the card's assignee and everyone mentioned in `content` join it, and everyone watching the card is notified.
|
|
586
|
+
|
|
587
|
+
Requires `resolvable:write` or `card:write`, depending on the call.
|
|
588
|
+
|
|
589
|
+
Params:
|
|
590
|
+
|
|
591
|
+
- `cardId`: [`CardId`](models/card.md)
|
|
592
|
+
- `context`: `"block" | "review" | "comment"`
|
|
593
|
+
`block` or `review` sets the card back to `not_started` and marks it as blocked or in review until the thread is closed. A `review` thread also adds the deck's guardians.
|
|
594
|
+
- `content`: `string`
|
|
595
|
+
Markdown. `@name` mentions of the organization's users are stored as `@[userId:<id>]`.
|
|
596
|
+
|
|
597
|
+
Response:
|
|
598
|
+
|
|
599
|
+
- `id`: [`ResolvableId`](models/resolvable.md)
|
|
600
|
+
|
|
601
|
+
## resolvables/removeReaction
|
|
602
|
+
|
|
603
|
+
**preview**: this action may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
604
|
+
|
|
605
|
+
Requires `resolvableEntryReaction:writeOwn` or `resolvableEntryReaction:writeAny`, depending on the call.
|
|
606
|
+
|
|
607
|
+
Params:
|
|
608
|
+
|
|
609
|
+
- `reactionId`: [`ResolvableEntryReactionId`](models/resolvableEntryReaction.md)
|
|
610
|
+
|
|
611
|
+
Response: none.
|
|
612
|
+
|
|
613
|
+
## resolvables/reopen
|
|
614
|
+
|
|
615
|
+
Opens a closed comment thread again. Reopening a `block` or `review` thread sets the card back to `not_started`, and fails for doc cards, hero cards and cards that already have an open `block` or `review` thread.
|
|
616
|
+
|
|
617
|
+
Requires `resolvable:write` or `card:write`, depending on the call.
|
|
618
|
+
|
|
619
|
+
Params:
|
|
620
|
+
|
|
621
|
+
- `id`: [`ResolvableId`](models/resolvable.md)
|
|
622
|
+
|
|
623
|
+
Response: none.
|
|
624
|
+
|
|
625
|
+
## resolvables/updateComment
|
|
626
|
+
|
|
627
|
+
Changes a comment's `content`. If the thread is open, users newly mentioned in it join the thread.
|
|
628
|
+
|
|
629
|
+
Requires `resolvableEntry:writeOwn` or `resolvableEntry:writeAny`, depending on the call.
|
|
630
|
+
|
|
631
|
+
Params:
|
|
632
|
+
|
|
633
|
+
- `entryId`: [`ResolvableEntryId`](models/resolvableEntry.md)
|
|
634
|
+
- `content`: `string`
|
|
635
|
+
Markdown. `@name` mentions of the organization's users are stored as `@[userId:<id>]`.
|
|
636
|
+
|
|
637
|
+
Response: none.
|
|
638
|
+
|
|
639
|
+
## resolvables/updateParticipantDone
|
|
640
|
+
|
|
641
|
+
Opts a participant out of a comment thread (`done: true`) or back in (`done: false`). Participants who opted out aren't notified about new comments. The card's assignee can't opt out.
|
|
642
|
+
|
|
643
|
+
**preview**: this action may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
644
|
+
|
|
645
|
+
Requires `resolvableParticipant:writeOwn` or `resolvableParticipant:writeAny`, depending on the call.
|
|
646
|
+
|
|
647
|
+
Params:
|
|
648
|
+
|
|
649
|
+
- `resolvableId`: [`ResolvableId`](models/resolvable.md)
|
|
650
|
+
- `userId`: [`UserId`](models/user.md)
|
|
651
|
+
- `done`: `boolean`
|
|
652
|
+
- `status`: `"active" | "opt_out" | "approve"` (optional)
|
|
653
|
+
Defaults to `opt_out` with `done: true` and to `active` otherwise. A guardian uses `approve` with `done: true` to approve a `review` thread.
|
|
654
|
+
|
|
655
|
+
Response: none.
|
|
656
|
+
|
|
657
|
+
## sprints/renameZone
|
|
658
|
+
|
|
659
|
+
Renames a zone of the run's manual order. The cards in that zone move to the new name with it, including archived ones.
|
|
660
|
+
|
|
661
|
+
**preview**: this action may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
662
|
+
|
|
663
|
+
Requires `sprint:write` and `cardOrder:write`.
|
|
664
|
+
|
|
665
|
+
Params:
|
|
666
|
+
|
|
667
|
+
- `id`: [`SprintId`](models/sprint.md)
|
|
668
|
+
- `label`: `string | null`
|
|
669
|
+
The zone to rename, one of `manualOrderLabels`. `null` is the zone without a name.
|
|
670
|
+
- `newLabel`: `string`
|
|
671
|
+
Trimmed. Fails if the run already has a zone with that name.
|
|
672
|
+
|
|
673
|
+
Response: none.
|
|
674
|
+
|
|
675
|
+
## sprints/updateConfig
|
|
676
|
+
|
|
677
|
+
Changes the given fields of a Run Config. A new `autoBeastModeDurationHours` starts Beast Mode for the current run right away if that time has already passed.
|
|
678
|
+
|
|
679
|
+
Requires `sprintConfig:write`.
|
|
680
|
+
|
|
681
|
+
Params:
|
|
682
|
+
|
|
683
|
+
- `id`: [`SprintConfigId`](models/sprintConfig.md)
|
|
684
|
+
- `name`: `string` (optional)
|
|
685
|
+
- `color`: `"gray" | "brown" | "yellow" | "red" | "pink" | "blue" | "green"` (optional)
|
|
686
|
+
- `isGlobal`: `boolean` (optional)
|
|
687
|
+
`true` links the Run Config to all projects. `false` needs `projectIds` if the Run Config is global.
|
|
688
|
+
- `autoBeastModeDurationHours`: `number | null` (optional) — **preview**
|
|
689
|
+
Fails with a value above 0 unless the organization's plan includes Beast Mode.
|
|
690
|
+
- `beastGracePeriodHours`: `number` (optional) — **preview**
|
|
691
|
+
Fails with a value above 0 unless the organization's plan includes Beast Mode.
|
|
692
|
+
- `projectIds`: [`ProjectId`](models/project.md)`[] | null` (optional)
|
|
693
|
+
Replaces the Run Config's projects and makes it non-global. Ignored with `isGlobal: true`. Cards of projects that are removed are taken out of their run.
|
|
694
|
+
- `moveOnFinish`: `("undone" | "review" | "blocked")[]` (optional) — **preview**
|
|
695
|
+
- `autoAssignStartedCard`: `boolean` (optional) — **preview**
|
|
696
|
+
- `autoAssignNewCard`: `boolean` (optional) — **preview**
|
|
697
|
+
- `runLabelTemplate`: `string | null` (optional) — **preview**
|
|
698
|
+
Has to contain `%RUN_NR%` or `%CALENDAR_WEEK%`.
|
|
699
|
+
|
|
700
|
+
Response: none.
|
|
701
|
+
|
|
702
|
+
## sprints/updateSprint
|
|
703
|
+
|
|
704
|
+
Changes the given fields of a run, and can start its Beast Mode or complete it.
|
|
705
|
+
|
|
706
|
+
Requires `sprint:write`.
|
|
707
|
+
|
|
708
|
+
Params:
|
|
709
|
+
|
|
710
|
+
- `id`: [`SprintId`](models/sprint.md)
|
|
711
|
+
- `name`: `string | null` (optional)
|
|
712
|
+
`null` makes the web app show the label from the Run Config's `runLabelTemplate`.
|
|
713
|
+
- `description`: `string` (optional)
|
|
714
|
+
- `handSyncEnabled`: `boolean` (optional) — **preview**
|
|
715
|
+
- `manualOrderLabels`: `(string | null)[]` (optional) — **preview**
|
|
716
|
+
Labels are trimmed, and duplicates are removed. Renaming a zone here leaves its cards with the old name; use `sprints/renameZone` instead.
|
|
717
|
+
- `userCapacities`: `{[key: string]: number}` (optional) — **preview**
|
|
718
|
+
Replaces all capacities. Fails with a value above 0 unless the organization's plan includes capacity tracking.
|
|
719
|
+
- `autoMilestoneId`: [`MilestoneId`](models/milestone.md)` | null` (optional) — **preview**
|
|
720
|
+
Also gives this milestone to the run's cards that have none.
|
|
721
|
+
- `lockIn`: `boolean` (optional) — **preview**
|
|
722
|
+
`true` starts Beast Mode for the run now and locks in all its cards. Fails if it's already on, or unless the organization's plan includes Beast Mode.
|
|
723
|
+
- `complete`: `boolean` (optional)
|
|
724
|
+
`true` completes the run now, as if it ended. Cards move to the next run as set in the Run Config's `moveOnFinish`. Fails if the run is already completed.
|
|
725
|
+
|
|
726
|
+
Response: none.
|
|
727
|
+
|
|
728
|
+
## watchings/addCard
|
|
729
|
+
|
|
730
|
+
Watches a card for you, so you're notified about its changes and new comment threads. Does nothing if you already watch it.
|
|
731
|
+
|
|
732
|
+
**preview**: this action may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
733
|
+
|
|
734
|
+
Requires `cardSubscription:writeOwn`.
|
|
735
|
+
|
|
736
|
+
Params:
|
|
737
|
+
|
|
738
|
+
- `cardId`: [`CardId`](models/card.md)
|
|
739
|
+
|
|
740
|
+
Response:
|
|
741
|
+
|
|
742
|
+
- `id`: `string`
|
|
743
|
+
|
|
744
|
+
## watchings/addDeck
|
|
745
|
+
|
|
746
|
+
Makes a user watch a deck. That's the same as watching every card in it, including cards added later. Does nothing if the user already watches it.
|
|
747
|
+
|
|
748
|
+
**preview**: this action may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
749
|
+
|
|
750
|
+
Requires `deckSubscription:writeOwn` or `deckSubscription:writeAny`, depending on the call.
|
|
751
|
+
|
|
752
|
+
Params:
|
|
753
|
+
|
|
754
|
+
- `deckId`: [`DeckId`](models/deck.md)
|
|
755
|
+
- `userId`: [`UserId`](models/user.md)
|
|
756
|
+
The token's own user. For a personal token, that's you.
|
|
757
|
+
|
|
758
|
+
Response:
|
|
759
|
+
|
|
760
|
+
- `id`: `string`
|
|
761
|
+
|
|
762
|
+
## watchings/removeCard
|
|
763
|
+
|
|
764
|
+
Stops watching a card. You still get its notifications while you watch its deck.
|
|
765
|
+
|
|
766
|
+
**preview**: this action may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
767
|
+
|
|
768
|
+
Requires `cardSubscription:writeOwn`.
|
|
769
|
+
|
|
770
|
+
Params:
|
|
771
|
+
|
|
772
|
+
- `cardId`: [`CardId`](models/card.md)
|
|
773
|
+
|
|
774
|
+
Response: none.
|
|
775
|
+
|
|
776
|
+
## watchings/removeDeck
|
|
777
|
+
|
|
778
|
+
Stops a user from watching a deck. Cards the user watches on their own stay watched.
|
|
779
|
+
|
|
780
|
+
**preview**: this action may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
781
|
+
|
|
782
|
+
Requires `deckSubscription:writeOwn` or `deckSubscription:writeAny`, depending on the call.
|
|
783
|
+
|
|
784
|
+
Params:
|
|
785
|
+
|
|
786
|
+
- `deckId`: [`DeckId`](models/deck.md)
|
|
787
|
+
- `userId`: [`UserId`](models/user.md)
|
|
788
|
+
|
|
789
|
+
Response: none.
|