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

Why cant i access org-jira-get-issue-by-id until I have run a jira command like org-jira-get-issue #51

Description

@olymk2

Feel free to use this code I wrote the code below so i can complete the summary from a jira id usefull for commit messages and org timesheets.

How ever I notice org-jira-get-issue-by-id is not available instantly, if i run org-jira-get-issue first it works, is there something i can do to improve this ?

(defun org-jira-get-summary ()
  "insert summary next to ticket 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))))))))

(defun org-jira-get-summary-url ()
  "insert summary next to ticket id from jira with url 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))))))))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions