From aff4197c461323ac8dfe3933628f8bd1004b7b72 Mon Sep 17 00:00:00 2001 From: Thomas Tramley Date: Fri, 26 Apr 2019 22:27:09 -0300 Subject: [PATCH] Call api when creating an issue with parent --- jiralib.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/jiralib.el b/jiralib.el index 88552e6..09e2451 100644 --- a/jiralib.el +++ b/jiralib.el @@ -351,8 +351,13 @@ request.el, so if at all possible, it should be avoided." :data (json-encode (first params))))) (jiralib--rest-call-it (cdr (assoc 'self response)) :type "GET") )) - ('createIssueWithParent (jiralib--rest-call-it - )) + ('createIssueWithParent + (let ((response (jiralib--rest-call-it + "/rest/api/2/issue" + :type "POST" + :data (json-encode (first params))))) + (jiralib--rest-call-it (cdr (assoc 'self response)) :type "GET") + )) ('editComment (jiralib--rest-call-it (format "/rest/api/2/issue/%s/comment/%s" (first params) (second params)) :data (json-encode `((body . ,(third params))))