V2, daily capture template not working

I’m trying to migrate my daily templates to v2, and I cannot make it work. Here is what I have for a journal entry:

    (setq org-roam-dailies-capture-templates
          (let ((head
                 (concat "#+title: %<%Y-%m-%d (%A)>\n#+startup: showall\n* Daily Overview\n"
                         "#+begin_src emacs-lisp :results value raw\n"
                         "(as/get-daily-agenda \"%<%Y-%m-%d>\")\n"
                         "#+end_src\n"
                         "* [/] Do Today\n* [/] Maybe Do Today\n* Journal\n")))
            `(("j" "journal" entry
               "* %<%H:%M> %?" :if-new
               (file+head+olp "%<%Y-%m-%d>.org" ,head ("Journal"))))))

When I call it, I get the file created with the expected head, but the journal entry itself (with the current time) is not created. I thought the +olp was a way to replace the v1 :olp property. Am I doing it wrong?

1 Like

For the record, the issue was that I was using an org-roam-dailies-goto command instead of an org-roam-dailies-capture command. The later works as expected.

1 Like