Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2 from olymk2/master
Browse files Browse the repository at this point in the history
New functions to get summary from jira id under your cursor.
  • Loading branch information
ahungry committed Nov 16, 2016
2 parents 3fc4dd5 + 25c31c5 commit 64815cb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions org-jira.el
Expand Up @@ -442,6 +442,25 @@ jql."
(let ((jql (format "id = %s" id)))
(jiralib-do-jql-search jql)))

;;;###autoload
(defun org-jira-get-summary ()
"Get issue summary from point and place next to issue id from jira"
(interactive)
(let ((jira_id (thing-at-point 'symbol)))
(forward-symbol 1)
(insert (format " - %s"
(cdr (assoc 'summary (car (org-jira-get-issue-by-id jira_id))))))))

;;;###autoload
(defun org-jira-get-summary-url ()
"Get issue summary from point and place next to issue id from jira, and make issue id a link"
(interactive)
(let ((jira_id (thing-at-point 'symbol)))
(sp-kill-symbol 1)
(insert (format "[[%s][%s]] - %s"
(concatenate 'string jiralib-url "browse/" jira_id) jira_id
(cdr (assoc 'summary (car (org-jira-get-issue-by-id jira_id))))))))

;;;###autoload
(defun org-jira-get-issues-headonly (issues)
"Get list of ISSUES, head only.
Expand Down

0 comments on commit 64815cb

Please sign in to comment.