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/nifty/actions/assign-task/assign-task.mjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ export default {
4
4
key: "nifty-assign-task",
5
5
name: "Assign Task to Team Member",
6
6
description: "Assigns a specific task to a team member in Nifty. [See the documentation](https://openapi.niftypm.com/api#put-api-v1-0-tasks-task_id-assignees)",
Copy file name to clipboardExpand all lines: components/nifty/actions/create-project/create-project.mjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ export default {
7
7
key: "nifty-create-project",
8
8
name: "Create Project",
9
9
description: "Creates a new project in a designated portfolio. [See the documentation](https://openapi.niftypm.com/api#/Projects/ProjectAPIController_createProject)",
Copy file name to clipboardExpand all lines: components/nifty/nifty.app.mjs
+99-19Lines changed: 99 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ export default {
7
7
propDefinitions: {
8
8
appId: {
9
9
type: "string",
10
-
label: "App Id",
10
+
label: "App ID",
11
11
description: `The unique identifier for the App. On Nifty, a new app can be created by following these steps:
12
12
1. Access Profile Settings > App Center > Integrate with API > Create a new App.
13
13
2. In the Create App popup, add the following Pipedream Redirect URL to the Redirect URLs: \`https://api.pipedream.com/connect/oauth/oa_aWyi2m/callback\`.
@@ -20,30 +20,33 @@ export default {
20
20
},
21
21
});
22
22
23
-
returnapps.map(({id: value,name: label})=>({
23
+
returnapps.map(({
24
+
id: value,name: label,
25
+
})=>({
24
26
label,
25
27
value,
26
28
}));
27
29
},
28
30
},
29
31
memberId: {
30
32
type: "string",
31
-
label: "Member Id",
32
-
description:
33
-
"The unique identifier for the member that the task will be assigned.",
33
+
label: "Member ID",
34
+
description: "The unique identifier for the member that the task will be assigned",
34
35
asyncoptions(){
35
36
constmembers=awaitthis.listMembers();
36
37
37
-
returnmembers.map(({id: value,name: label})=>({
38
+
returnmembers.map(({
39
+
id: value,name: label,
40
+
})=>({
38
41
label,
39
42
value,
40
43
}));
41
44
},
42
45
},
43
46
projectId: {
44
47
type: "string",
45
-
label: "Project Id",
46
-
description: "The unique identifier for the project.",
48
+
label: "Project ID",
49
+
description: "The unique identifier for the project",
47
50
asyncoptions({ page }){
48
51
const{ projects }=awaitthis.listProjects({
49
52
params: {
@@ -52,34 +55,41 @@ export default {
52
55
},
53
56
});
54
57
55
-
returnprojects.map(({id: value,name: label})=>({
58
+
returnprojects.map(({
59
+
id: value,name: label,
60
+
})=>({
56
61
label,
57
62
value,
58
63
}));
59
64
},
60
65
},
61
66
taskId: {
62
67
type: "string",
63
-
label: "Task Id",
64
-
description: "The unique identifier for the task.",
65
-
asyncoptions({ page }){
68
+
label: "Task ID",
69
+
description: "The unique identifier for the task",
70
+
asyncoptions({
71
+
page, projectId,
72
+
}){
66
73
const{ tasks }=awaitthis.listTasks({
67
74
params: {
68
75
limit: LIMIT,
69
76
offset: LIMIT*page,
77
+
project_id: projectId,
70
78
},
71
79
});
72
80
73
-
returntasks.map(({id: value,name: label})=>({
81
+
returntasks.map(({
82
+
id: value,name: label,
83
+
})=>({
74
84
label,
75
85
value,
76
86
}));
77
87
},
78
88
},
79
89
templateId: {
80
90
type: "string",
81
-
label: "Template Id",
82
-
description: "The unique identifier for the template.",
91
+
label: "Template ID",
92
+
description: "The unique identifier for the template",
83
93
asyncoptions({ page }){
84
94
const{ items }=awaitthis.listTemplates({
85
95
params: {
@@ -89,12 +99,63 @@ export default {
89
99
},
90
100
});
91
101
92
-
returnitems.map(({id: value,name: label})=>({
102
+
returnitems.map(({
103
+
id: value,name: label,
104
+
})=>({
105
+
label,
106
+
value,
107
+
}));
108
+
},
109
+
},
110
+
milestoneId: {
111
+
type: "string",
112
+
label: "Milestone ID",
113
+
description: "The unique identifier of a milestone",
114
+
optional: true,
115
+
asyncoptions({
116
+
page, projectId,
117
+
}){
118
+
const{ items }=awaitthis.listMilestones({
119
+
params: {
120
+
limit: LIMIT,
121
+
offset: LIMIT*page,
122
+
project_id: projectId,
123
+
},
124
+
});
125
+
126
+
returnitems.map(({
127
+
id: value,name: label,
128
+
})=>({
93
129
label,
94
130
value,
95
131
}));
96
132
},
97
133
},
134
+
taskGroupId: {
135
+
type: "string",
136
+
label: "Task Group ID",
137
+
description: "The unique identifier of a task group",
0 commit comments