emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Inactive timestamp with TODO are exported in .ics file
@ 2023-11-20 10:00 Cletip Cletip
  2023-12-04 13:03 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Cletip Cletip @ 2023-11-20 10:00 UTC (permalink / raw)
  To: Org Mode List

[-- Attachment #1: Type: text/plain, Size: 2049 bytes --]

Hello to all,

I hope this message finds you well. I am writing to seek assistance with an
issue I am facing regarding the org-icalendar export and agenda visibility
in Emacs.

Despite setting (org-icalendar-with-timestamps 'active), I am facing an
issue where the export includes items with the TODO state and inactive
timestamp. Below are four examples illustrating this problem, with the code
that I am using to try the export (copy and paste the code and the four
events (in a file "Test.org" in /tmp/ for example), and execute the code to
see that the "Tickler" is exported, despite it is an inactive timestamp) :

#+begin_src emacs-lisp

  (let ((org-agenda-files `(,(buffer-file-name)))
(org-icalendar-combined-agenda-file "/tmp/agenda.ics")

(org-icalendar-with-timestamps 'active)
(org-icalendar-include-todo nil) ;; nil to not clone scheduled TODO task
(org-icalendar-use-scheduled'(event-if-todo-not-done event-if-not-todo))
(org-icalendar-use-deadline '(event-if-not-todo event-if-todo-not-done))
)
    ;; here is the export
    (org-icalendar-combine-agenda-files)
    )

#+end_src

**** A simple appointment (exported)
:PROPERTIES:
:ID:       31ea3244-769b-4ead-80d5-1573f377de86
:END:

<2023-08-02 13:00-14:00>

**** TODO A tickler (TODO + scheduled + inactive timestamp) (not exported)
SCHEDULED:[2023-08-05 Sat 18:33]
:PROPERTIES:
:ID:       71fc9702-f479-4d36-ad6f-457892df6ab9
:END:

**** TODO A task that needs to be done and scheduled (exported)
SCHEDULED: <2023-08-03 Thu 13:00>
:PROPERTIES:
:ID:       3bccc447-85bb-4ef0-89f7-8ed6c6ff8891
:END:

**** TODO A task with a deadline (exported, two times)
SCHEDULED: <2023-08-01 Tue 13:00> DEADLINE: <2023-08-10 Thu 13:00>
:PROPERTIES:
:ID:       2d96d62e-5420-4443-be8d-a9456ea9551f
:END:

Why are the "tickler" exported, despite it is an inactive timestamp ?
Is the a solution to export appointment and the tasks, exclude the tickler ?

I appreciate any insights or suggestions the community can provide to help
me address these issue ^^

Thank you for your time and assistance.

[-- Attachment #2: Type: text/html, Size: 2337 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Inactive timestamp with TODO are exported in .ics file
  2023-11-20 10:00 Inactive timestamp with TODO are exported in .ics file Cletip Cletip
@ 2023-12-04 13:03 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2023-12-04 13:03 UTC (permalink / raw)
  To: Cletip Cletip; +Cc: Org Mode List

Cletip Cletip <clement020302@gmail.com> writes:

> Despite setting (org-icalendar-with-timestamps 'active), I am facing an
> issue where the export includes items with the TODO state and inactive
> timestamp. 
> ...
> (org-icalendar-with-timestamps 'active)
> (org-icalendar-include-todo nil) ;; nil to not clone scheduled TODO task
> (org-icalendar-use-scheduled'(event-if-todo-not-done event-if-not-todo))
> (org-icalendar-use-deadline '(event-if-not-todo event-if-todo-not-done))
> )
> ...
> **** TODO A tickler (TODO + scheduled + inactive timestamp) (not exported)
> SCHEDULED:[2023-08-05 Sat 18:33]
> :PROPERTIES:
> :ID:       71fc9702-f479-4d36-ad6f-457892df6ab9
> :END:
> ...
> Why are the "tickler" exported, despite it is an inactive timestamp ?
> Is the a solution to export appointment and the tasks, exclude the tickler ?

Because `org-icalendar-use-scheduled' takes precedence. In fact, Org has
no notion of inactive timestamp in SCHEDULED. You will even see a
warning if you run M-x org-lint on the provided example file.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-04 13:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-20 10:00 Inactive timestamp with TODO are exported in .ics file Cletip Cletip
2023-12-04 13:03 ` Ihor Radchenko

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).