redmine_taskjuggler icon indicating copy to clipboard operation
redmine_taskjuggler copied to clipboard

Export of task without estimated time

Open chris2fr opened this issue 11 years ago • 1 comments

Now : A task without an estimate is exported with a syntax error in the TJP file. Instead of #h the export is just h.

Future : A task without an estimate is not a task.

Choice :

  • It is an error at the generation of the TJP file
  • It is silently excluded

chris2fr avatar Apr 30 '14 06:04 chris2fr

With requests for schedule computation on the server, it is more and more important for the TJP file to be correct before TJP computation.

Here is what I can do:

  • A method on the Redmine Project to see if it is Taskjuggler Ready
  • A method on the Taskjuggler Project to see if it is ready
  • A method on the Taskjuggler Task to see if it is correct
  • A method on the Redmine Issue to see if it is Taskjuggler ready
  • A trigger on the Issue to see if it is Taskjuggler ready
  • A way of triggering the checking of the project to see if it is Taskjuggler ready

But getting to the above, I guess I will do both:

  • Generate an error on TJP creation
  • Exclude the task or label it a milestone

I need to see about raising an error here and displaying it on the viewer. In order to do this I can have a error.html.erb file in redmine_taskjuggeler_projects in which I will show an error? I am not quite sure how to show errors in Redmine.

So, here is where all this leads me:

  • Find out how to show an error
  • Find out how to raise an error
  • Rework the method calls around the generation of the tjp file
  • Check each task to see if it is TJP ready
  • Check each resource to see if it is TJP ready
  • Check the project to see if it is TJP ready
  • Raise errors ? if they are not compatible

chris2fr avatar May 02 '14 06:05 chris2fr