aboutsummaryrefslogtreecommitdiffstats
path: root/scrumli.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'scrumli.lisp')
-rw-r--r--scrumli.lisp9
1 files changed, 9 insertions, 0 deletions
diff --git a/scrumli.lisp b/scrumli.lisp
index 362f4a5..df6b442 100644
--- a/scrumli.lisp
+++ b/scrumli.lisp
@@ -221,3 +221,12 @@
(set-assignee 'story id assignee)
(encode-json-to-string '((status . "ok"))))
403))
+
+(define-route scrumli-task-set-assignee ("tasks/assignee"
+ :content-type "json"
+ :method :post)
+ (if (logged-in-p)
+ (with-post-parameters ("id" "assignee")
+ (set-assignee 'task id assignee)
+ (encode-json-to-string '((status . "ok"))))
+ 403))