From eabf5e30d701a64011ac6c98f1bb80f3dd203add Mon Sep 17 00:00:00 2001 From: Jakub Date: Mon, 18 May 2026 19:48:55 +0800 Subject: [PATCH] semi-automated jira login --- userland/jira.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/userland/jira.el b/userland/jira.el index 6cd3ffa..8e844e0 100644 --- a/userland/jira.el +++ b/userland/jira.el @@ -25,6 +25,17 @@ (use-package org-jira) (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) ;;; jira.el ends here