Skip to content

Commit e5384ad

Browse files
committed
feat(mcl.commands.add_task): support milestone and estimate, make some params optional
1 parent 9997085 commit e5384ad

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/mcl/src/src/mcl/utils/add_task.d

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ void addTask()
2020
auto assignee_column_id = "c-UN6X8s-5Oo";
2121
auto status_column_id = "c-o7Utgsgdrl";
2222
auto priority_column_id = "c-qWRh4X8QSm";
23+
auto time_estimate_column_id = "c-ciqYsdyENp";
24+
auto milestone_column_id = "c-yIihZAmgKN";
2325

2426
// if we need to add another column, find it's id from here:
2527
// foreach (column; columns)
@@ -35,6 +37,8 @@ void addTask()
3537
CodaCell(assignee_column_id, params.userName),
3638
CodaCell(status_column_id, params.status),
3739
CodaCell(priority_column_id, params.priority),
40+
CodaCell(time_estimate_column_id, params.estimate),
41+
CodaCell(milestone_column_id, params.milestone),
3842
])
3943
];
4044

@@ -55,8 +59,10 @@ struct Params
5559
string parentTicket;
5660
string taskName;
5761
string userName;
58-
string status;
59-
string priority;
62+
@optional() string status = "Backlog";
63+
@optional() string priority = "normal";
64+
@optional() string milestone;
65+
@optional() string estimate;
6066

6167
void setup()
6268
{

0 commit comments

Comments
 (0)