emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [FR] Remove blank :effort:s from taskjuggler export
@ 2021-09-03 12:07 Daniel Nemenyi
  0 siblings, 0 replies; only message in thread
From: Daniel Nemenyi @ 2021-09-03 12:07 UTC (permalink / raw)
  To: emacs-orgmode

Dear wonderful Orgers,

Something I think would make the taskjuggler export even smoother would be if empty :effort:'s were simply skipped over, rather than exported to the tjp without a value and triggering a tj3 error. Let me explain.

Say we had the following org file, with one big feature:

---

#+COLUMNS: %70ITEM(Task) %Effort %allocate

* Big feature                                          :taskjuggler_project:
  :PROPERTIES:
  :EFFORT:   4d
  :ALLOCATE: alice, john
  :END:
* Resources                                            :taskjuggler_resource:
** Alice P Hacker
** John McCarthy

---

I decide that I want to break up that big task into subtasks, so I add them and switch into column view to add the efforts and allocations. Crucially, also in column view, I delete the effort estimate (using e) from the Big Feature, as otherwise taskjuggler would error that Big feature (a parent node) should not have an effort estimate when it has children.

This typical behaviour (for me) leaves me with the following.

---

#+COLUMNS: %70ITEM(Task) %Effort %allocate

* Big feature                                          :taskjuggler_project:
  :PROPERTIES:
  :EFFORT:           # Note empty :effort:
  :END:
** Design feature
   :PROPERTIES:
   :EFFORT:   1d
   :ALLOCATE: alice
   :END:
** Code feature
   :PROPERTIES:
   :EFFORT:   2d
   :ALLOCATE: john
   :END:
** Test feature
   :PROPERTIES:
   :EFFORT:   1d
   :ALLOCATE: alice
   :END:
* Resources                                            :taskjuggler_resource:
** Alice P Hacker
** John McCarthy

---

Alas the empty :effort: node causes tj3 to fail with a cryptic 'Error: Unexpected token 'task' found. Expecting one of :INTEGER, :FLOAT', as the effort key is exported to the tjp file without a value:

---

task big "Big feature" {
  effort 
  task design "Design feature" {
...

---

My solution would be for org-taskjuggler-export to simply skip over empty effort symbols. Another solution might be for column view to remove symbols that have been deleted - however this might have unintended consequences?

Thanks for taking this into account, and for the amazing tool that is org mode!
Daniel



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

only message in thread, other threads:[~2021-09-03 13:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-03 12:07 [FR] Remove blank :effort:s from taskjuggler export Daniel Nemenyi

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