semi-automated jira login
This commit is contained in:
parent
4afa595d40
commit
eabf5e30d7
1 changed files with 11 additions and 0 deletions
|
|
@ -25,6 +25,17 @@
|
||||||
(use-package org-jira)
|
(use-package org-jira)
|
||||||
(setq org-jira-working-dir "~/.org/tasks/projects")
|
(setq org-jira-working-dir "~/.org/tasks/projects")
|
||||||
|
|
||||||
|
(defun jira ()
|
||||||
|
"Sign in to Jira and fetch issues."
|
||||||
|
(interactive)
|
||||||
|
;; On MacOS I store the API key with security, and retrieve it like this.
|
||||||
|
;; Auth-source is buggy on MacOS.
|
||||||
|
(when (equal system-type 'darwin)
|
||||||
|
(kill-new
|
||||||
|
(shell-command-to-string (concat "security find-generic-password -a \""
|
||||||
|
jiralib-user "\" -s \"jira\" -w"))))
|
||||||
|
(call-interactively #'org-jira-get-issues))
|
||||||
|
|
||||||
(provide 'jira)
|
(provide 'jira)
|
||||||
|
|
||||||
;;; jira.el ends here
|
;;; jira.el ends here
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue