Skip to content

Commit

Permalink
Call api when creating an issue with parent
Browse files Browse the repository at this point in the history
  • Loading branch information
vlladdrakk committed Apr 27, 2019
1 parent 3a6c9fd commit aff4197
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions jiralib.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
Expand Down

0 comments on commit aff4197

Please sign in to comment.