You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/shortcut/actions/create-story/create-story.mjs
+53-75Lines changed: 53 additions & 75 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ export default {
8
8
key: "shortcut-create-story",
9
9
name: "Create Story",
10
10
description: "Creates a new story in your Shortcut account. See [Create Story](https://shortcut.com/api/rest/v3#Create-Story) in Shortcut Rest API, V3 reference for endpoint documentation.",
11
-
version: "1.0.1",
11
+
version: "1.0.2",
12
12
annotations: {
13
13
destructiveHint: false,
14
14
openWorldHint: true,
@@ -18,83 +18,59 @@ export default {
18
18
props: {
19
19
shortcut,
20
20
workflowStateId: {
21
-
type: "integer",
22
-
label: "Workflow State Id",
23
-
description: "The ID of the workflow state the story will be in.",
description: "Controls the story's archived state.",
34
+
description: "Controls the story's archived state",
59
35
optional: true,
60
36
},
61
37
comment: {
62
-
type: "object",
38
+
type: "string",
63
39
label: "Comment",
64
40
description:
65
-
"A comment object attached to the story must have the following structure: `author_id` which is the member ID of the Comment's author (defaults to the user identified by the API token), `created_at` which defaults to the time/date the comment is created, but can be set to reflect another date, `external_id` field that can be set to another unique ID. In the case that the comment has been imported from another tool, the ID in the other tool can be indicated here, `text` is the comment text, and `updated_at` which defaults to the time/date the comment is last updated in Shortcut but can be set to reflect another time/date. See [CreateStoryCommentParams](https://shortcut.com/api/rest/v3#CreateStoryCommentParams) for more info.",
41
+
"A comment to attach to the story",
66
42
optional: true,
67
43
},
68
44
completedAtOverride: {
69
45
type: "string",
70
46
label: "Completed at Override Date",
71
47
description:
72
-
"A manual override for the time/date the Story was completed.",
48
+
"A manual override for the time/date the Story was completed",
73
49
optional: true,
74
50
},
75
51
createdAt: {
76
52
type: "string",
77
53
label: "Created at Date",
78
-
description: "The time/date the Story was created.",
54
+
description: "The time/date the Story was created",
79
55
optional: true,
80
56
},
81
57
dueDate: {
82
58
type: "string",
83
59
label: "Due Date",
84
-
description: "The due date of the story.",
60
+
description: "The due date of the story",
85
61
optional: true,
86
62
},
87
63
description: {
88
64
type: "string",
89
65
label: "Description",
90
-
description: "The description of the story.",
66
+
description: "The description of the story",
91
67
default: "",
92
68
optional: true,
93
69
},
94
70
epicId: {
95
71
type: "integer",
96
72
label: "Epic ID",
97
-
description: "The unique identifier of the epic the story belongs to.",
73
+
description: "The unique identifier of the epic the story belongs to",
"The numeric point estimate of the story. Can also be null, which means unestimated.",
96
+
"The numeric point estimate of the story. Can also be null, which means unestimated",
121
97
optional: true,
122
98
},
123
99
externalId: {
124
100
type: "string",
125
-
label: "External Id",
101
+
label: "External ID",
126
102
description:
127
103
"This field can be set to another unique ID. In the case that the Story has been imported from another tool, the ID in the other tool can be indicated here.",
128
104
optional: true,
129
105
},
130
106
externalLinks: {
131
107
type: "string[]",
132
108
label: "External Links",
133
-
description: "A string array of External Links associated with this story.",
109
+
description: "A string array of External Links associated with this story",
134
110
optional: true,
135
111
},
136
112
fileIds: {
137
113
type: "integer[]",
138
-
label: "File Ids",
139
-
description: "An array of IDs of files attached to the story.",
114
+
label: "File IDs",
115
+
description: "An array of IDs of files attached to the story",
"An array of IDs of linked files attached to the story.",
201
177
asyncoptions(){
@@ -218,8 +194,8 @@ export default {
218
194
},
219
195
ownerIds: {
220
196
type: "string[]",
221
-
label: "Owner Ids",
222
-
description: "A string array of UUIDs of the owners of this story.",
197
+
label: "Owner IDs",
198
+
description: "A string array of UUIDs of the owners of this story",
223
199
asyncoptions(){
224
200
returnawaitthis.shortcut.listMembersAsOptions();
225
201
},
@@ -228,7 +204,7 @@ export default {
228
204
requestedById: {
229
205
type: "string",
230
206
label: "Requested by ID",
231
-
description: "The ID of the member that requested the story.",
207
+
description: "The ID of the member that requested the story",
232
208
asyncoptions(){
233
209
returnawaitthis.shortcut.listMembersAsOptions();
234
210
},
@@ -237,39 +213,37 @@ export default {
237
213
startedAtOverride: {
238
214
type: "string",
239
215
label: "Started at Override Date",
240
-
description: "A manual override for the time/date the Story was started.",
216
+
description: "A manual override for the time/date the Story was started",
241
217
optional: true,
242
218
},
243
-
storyLink: {
244
-
type: "object",
245
-
label: "Story Link",
246
-
description:
247
-
"An story link object attached to the story must have the following structure: `object_id` is the unique ID of the story defined as object, `subject_id` is the unique ID of the story defined as subject, and `verb` which indicates how the subject story acts on the object story, valid values are `blocks`, `duplicates`, or `relates to`. See [CreateStoryLinkParams](https://shortcut.com/api/rest/v3#CreateStoryLinkParams) for more info.",
248
-
optional: true,
219
+
storyIds: {
220
+
propDefinition: [
221
+
shortcut,
222
+
"storyIds",
223
+
],
249
224
},
250
225
storyType: {
251
226
type: "string",
252
227
label: "Story Type",
253
-
description: "The type of story (feature, bug, chore).",
228
+
description: "The type of story (feature, bug, chore)",
254
229
options: constants.STORY_TYPES,
255
230
default: "feature",
256
231
optional: true,
257
232
},
258
-
task: {
259
-
type: "object",
260
-
label: "Task",
261
-
description:
262
-
"A task object attached to the story must have the following structure: `complete` which is a boolean, indicating whether the task is completed (defaults to `false`), `created_at` which defaults to the time/date the task is created but can be set to reflect another creation time/date, `description` as a description for the task, `external_id` a field can be set to another unique ID. In the case that the task has been imported from another tool, the ID in the other tool can be indicated here, `owner_ids` as an array of UUIDs for any members you want to add as owners on this new task, `updated_at` which defaults to the time/date the task was last updated in Shortcut but can be set to reflect another time/date. See [CreateTaskParams](https://shortcut.com/api/rest/v3#CreateTaskParams) for more info.",
233
+
tasks: {
234
+
type: "string[]",
235
+
label: "Tasks",
236
+
description: "An array of task descriptions to add to the story",
263
237
optional: true,
264
238
},
265
239
updatedAt: {
266
240
type: "string",
267
241
label: "Updated at Date",
268
-
description: "The time/date the story was updated.",
242
+
description: "The time/date the story was updated",
0 commit comments