From c0f7ed37bc58acc39ce44268f37e1e9a90152ee5 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 21 Jun 2020 17:03:48 +0200 Subject: [PATCH] Introduct org capture template for complex tickets From time to time, a new item introduces a more complex task that requires a separate headline. The new capture template is meant for this use case: it will ask for a ticket number (the complex tasks I currently have to deal with always come with a ticket number), a headline description, a reference (link to redmine ticket or something), and a first task (usually a link to the first email from the ticket). It might be that the template is too specific, but let's try it out first and adapt it if necessary. --- init.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 302fa9a..8d9e713 100644 --- a/init.el +++ b/init.el @@ -1194,7 +1194,16 @@ in the main agenda view." plain (clock) "%c" - :immediate-finish t :empty-lines 1))) + :immediate-finish t :empty-lines 1) + ("T" "Record new ticket with first task" + entry + (file db/org-default-refile-file) + ,(concat "* Ticket #%^{Ticket Number}: %^{Ticket Description}\n" + ":PROPERTIES:\n:CREATED: %U\n:END:\n" + "\nReference: %^{Reference}\n" + "\n** %^{First Task}\n" + ":PROPERTIES:\n:CREATED: %U\n:END:\n" + "\n%?")))) :config (progn ;; disable usage of helm for `org-capture' (with-eval-after-load 'helm-mode