improve org-jira support

This commit is contained in:
Peter Tillemans 2024-08-07 09:51:49 +02:00
parent 7cd48b9fa2
commit 46e6b9dc83
2 changed files with 13 additions and 5 deletions

View file

@ -77,7 +77,7 @@
(tgt (concat user-emacs-directory "init.el"))) (tgt (concat user-emacs-directory "init.el")))
(if (file-newer-than-file-p src tgt) (if (file-newer-than-file-p src tgt)
(progn (progn
(message "snamellit.org has been changed, tangling...") (message "init.org has been changed, tangling...")
(org-babel-tangle-file src tgt "emacs-lisp") (org-babel-tangle-file src tgt "emacs-lisp")
;; this is a good time to check if the crafted-emacs repo is fresh ;; this is a good time to check if the crafted-emacs repo is fresh
;; - we just updated the init.org file so we expect changes. ;; - we just updated the init.org file so we expect changes.

View file

@ -1,5 +1,7 @@
#+TITLE: My Emacs Configuration #+TITLE: My Emacs Configuration
#+PROPERTY: header-args:emacs-lisp :tangle yes :lexical yes #+PROPERTY: header-args :tangle yes
#+PROPERTY: header-args:emacs-lisp :lexical yes :tangle yes :comments both :padline yes
* Literate Configuration for Emacs * Literate Configuration for Emacs
** Goals ** Goals
@ -78,6 +80,7 @@ Also immediately set lexical binding mode.
(add-hook 'after-init-hook (add-hook 'after-init-hook
#'(lambda () (report-time-since-load " [after-init]")) #'(lambda () (report-time-since-load " [after-init]"))
t) t)
(report-time-since-load "start init file")
#+end_src #+end_src
When looking for where the time goes, the `report-time-since-load` When looking for where the time goes, the `report-time-since-load`
@ -1197,12 +1200,17 @@ Here is a snapshot of the keybindings dd <2024-07-30 Tue>.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
;; configure org-jira ;; configure org-jira
(use-package org-jira (use-package org-jira
:ensure t :ensure (:host github :repo "ptillemans/org-jira" :branch "pti_fix_getUsers")
:commands (org-jira-get-issues org-jira-get-projects) :commands (org-jira-get-issues org-jira-get-projects)
:config :config
(setq org-jira-users '(("Peter Tillemans". "557058:bdf83521-663b-4ae6-9b71-487bb98e2add")))
(setq jiralib-agile-page-size 1000)
(setq org-jira-custom-jqls
'(
(:jql " assignee = currentUser() and (created > '2024-01-01' of updated > '2024-01-01) order by created DESC"
:limit 100 :filename "this-year")
))
(make-directory "~/.org-jira" 'parents) (make-directory "~/.org-jira" 'parents)
(setq jiralib-url (auth-source-pass-get "url" "customer/jira")) (setq jiralib-url (auth-source-pass-get "url" "customer/jira"))
(jiralib-login (jiralib-login