emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Issue with tags in custom agenda view ics export
@ 2019-01-13 16:10 Ian Hocking
  0 siblings, 0 replies; only message in thread
From: Ian Hocking @ 2019-01-13 16:10 UTC (permalink / raw)
  To: emacs-orgmode

Hi everyone

I'm using Emacs 25.3 and Org Mode 9.2. I'm fairly new to this (will be getting into Elisp soon but haven't yet done so) but I'm already using the excellent org mode to improve my management of our BSc Psychology programme. I’ve looked online and in the mailing list archives and don’t see anything that answers my issue directly, though no doubt much of it could be relevant.

My issue is fairly straightforward.

I am able to export from org mode to a .ics file in two ways. The first way is using the org mode exporter. This ends up including the appropriate tags in the .ics file within the CATEGORY field. The second way is using a custom agenda view with a specified .ics export file. However, this second way does not, no matter how much I try, include the tags. I've tweaked several variables that might be of importance, including ~~org-icalendar-categories~~ but this seems to have no effect (CATEGORY remains blank), or, with one combination of values that I've now forgotten, I've managed to get a '???' in the CATEGORY field.

It seems pretty obvious now that either this variable is not being observed by the custom agenda view or there's another simple mistake I'm making somewhere else; quite possibly there's some export setting that I'm missing from my startup file.

Would someone on this list who sees tags inclusion in their custom agenda view (exporting to ics) please share their code with me? Below is the snippet I'm using from ~~org-agenda-custom-commands~~ (I'm starting with my birthdays calendar as a simple case. In case it's useful, I include a snippet from that file at the end.)

#+BEGIN_SRC elisp
 ;; birthdays and anniversaries - show feedback; agenda view
        ("ia"                                         ;; key is 
         "[a]anniveraries for the next 90 days"          ;; description
         agenda                                       ;; results type
         nil                                          ;; search term
         ((org-agenda-start-day "2019-01-01")
          (org-agenda-span 365)                        ;; show next year days
          (org-agenda-tag-filter-preset '("+anniversary"))
          )
        ("~/Dropbox/orgExport/anniversaries.ics")                 ;; file to used when exporting (not automatic)
        )
#+END_SRC

#+BEGIN_SRC orgmode

* A H's Birthday
:PROPERTIES:
:DESCRIPTION: Age not known 
:END:
<2019-01-12 Sat +1y>

#+END_SRC

Cheers

Ian

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-13 16:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-13 16:10 Issue with tags in custom agenda view ics export Ian Hocking

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).