title: How can I write a report (custom agenda view) of org-mode tasks and logbook notes that were recorded in a given time period?
body: <p>I use org-mode to manage my time whilst doing project work.</p>
  
  <p>I break the task into TODO items and clock my work on them (<code>org-clock-in</code> and <code>org-clock-out</code>). Whilst I am working I use <code>org-add-note</code> to keep record of my thoughts and progress.</p>
  
  <p>I want a report for any given time period (e.g. last day, week, fortnight, between x and y) to identify the tasks that I was working on at a given time and the notes (that are stored in LOGBOOK) which I wrote as I was working?</p>
  
  <p>I've read through the org-mode documentation and can't see if this feature is already implemented somewhere, or if I should start from scratch, although I presume it is provided somehow by Custom Agenda Views. The closest I have seen to what I imagine is the Agenda Timeline View.</p>
  
  <p>I will happily accept a link to documentation that leads me to write the correct code. Any working snippets are a definite bonus but the heart of my question is conceptual, how do I create a custom view or modify the existing Timeline View to do this?</p>
  
  <p>EDIT: An example file and expected (hoped) output</p>
  
  <pre><code>* TODO Copy email from MongoDB to XML
    :LOGBOOK:
    CLOCK: [2015-06-01 Mon 08:40]--[2015-06-01 Mon 09:56] =&gt;  1:16
    - Note taken on [2015-06-01 Mon 08:40] \\
      Ops gave me the address of a Mongo Instance, getting to work
    CLOCK: [2015-06-01 Mon 10:58]--[2015-06-01 Mon 11:00] =&gt;  0:02
    - Note taken on [2015-06-01 Mon 10:59] \\
      Ooops! Ops gave me a live instance, I have asked they put Mongo into a vm bubble.
    CLOCK: [2015-06-01 Mon 11:49]--[2015-06-01 Mon 12:27] =&gt;  0:38
    - Note taken on [2015-06-01 Mon 12:26] \\
      The instance of Mongod in the bubble has a licensing issue (lol, this is contrived).
    - Note taken on [2015-06-01 Mon 12:52] \\
      I've mailed Ops requesting he investigate the problem with logging into the bubble instance.
    CLOCK: [2015-06-01 Mon 14:31]--[2015-06-01 Mon 16:50] =&gt;  2:19
    - Note taken on [2015-06-01 Mon 14:31] \\
      Adding checksum column to Contact Table
    - Note taken on [2015-06-01 Mon 15:42] \\
      Job done, emacs rocks!
    :END:
  </code></pre>
  
  <p>Output</p>
  
  <pre><code>2015-06-01 Mon 08:40 TODO Copy email from MongoDB to XML
  2015-06-01 Mon 08:40 Ops gave me the address of a Mongo Instance, getting to work
  2015-06-01 Mon 09:56 =&gt;  1:16
  ...
  2015-06-01 Mon 10:58 TODO Copy email from MongoDB to XML
  2015-06-01 Mon 10:59 Ooops! Ops gave me a live instance, I have asked they put Mongo into a vm bubble.
  2015-06-01 Mon 11:00 =&gt;  0:02
  ...
  2015-06-01 Mon 14:31 TODO Copy email from MongoDB to XML
  2015-06-01 Mon 14:31 Adding checksum column to Contact Table
  2015-06-01 Mon 15:42 Job done, emacs rocks!
  2015-06-01 Mon 16:50 =&gt;  2:19
  </code></pre>
  
  <p>This looks promising <a href="https://emacs.stackexchange.com/questions/677/listing-scheduled-headlines-from-an-org-file-ordered-by-date">https://emacs.stackexchange.com/questions/677/listing-scheduled-headlines-from-an-org-file-ordered-by-date</a></p>