Save the parameters, such tj_allocation, tj_efficiency and tj_limits, for each row
chris2fr opened this issue · comments
From Namiko999
"how save the parameters, such tj_allocation, tj_efficiency and tj_limits, for each row?"
An allocation is a comma-separated list of names in a task. Each allocation resource may have different shifts, and manners of choosing the resource : alternative, mandatory, persistent, select, shifts (allocate).
Efficiency is inherent to a resource.
Limits is for all allocations on a task.
http://www.taskjuggler.org/tj3/manual/index.html
See
allocate
efficiency
limits (task)
Here is the a proposed first-stage correction of the problem. Let's have just an empty text box by the issue for the allocations. There should be a text next to the field reminding the user of the basic syntax.
In an issue
[...]
tj_allocation_etc :
[ allocate joe {mandatory}, john {mandatory} ]
[limits weeklymax 2d]
In practice, I guess we will have one task for Joe
Impacted files for the saving and publishing of the form are:
app\views\redmine_taskjuggler\issue_view_issues_form_details_bottom.erb
app\views\redmine_taskjuggler\issue_view_issues_bulk_edit_details_bottom.erb
app\views\redmine_taskjuggler\issue_view_issues_show_description_bottom.erb
app\controllers\redmine_taskjuggler_controller.rb
The call
child_task(issue, project)
will need tweaking. Basicly, look for tj_priority and add tj_allocate stuff
db\migrate\005_patch_issues.rb (actually we need to create this and take the new stuff from recent edits)
lib\redmine_taskjuggler\taskjuggler\task.rb (add the fields for allocation)
lib\redmine_taskjuggler\redmine\issue.rb
lib\initializers\issue.rb
Of course there is also lib\redmine_taskjuggler\tjp.rb
In order to include an extra field for allocate statements in Taskjuggler, I need to
1. Add the field into the Redmine Issue
2. Add the field into the lib/Redmine_Taskjuggler/Redmine
3. Add the field into the lib/Redmine_Taskjuggler/Taskjuggler representation
4. Add the transformation (perhaps a switch on current practice) to the tjp generator
I am not sure they are used, but they are not misused. I think each is probably in its place. Can use testing.