Automatic time scales

Is there a way for projects and tasks to have automatic timescales given according to their child tasks…

I currently have to get the earliest and oldest date from my data and then work outwards to supply, for example:

new GanttProjectInfo(1, 'test project', new Date(2012, 1, 1));

and

new GanttTaskInfo(2, 'test task', new Date(2012, 1, 1), 10000, 50, "");

with scales that fit the data inside…

Is there something like:

new GanttProjectInfo(1, 'test project', 'auto');

so that for data that does have a start date and end date, it can automatically push it’s parents out?

If like myself, you have a selection of tasks that belong to a category… for example:

-farming
-cows
-chickens
-sheep
-morning feed(09:00 -> 10:00)
-take to field(11:00 -> 15:00)
-sleep time(15:00 -> 17:30)

Farming is the category and so is sheep… I only have start and end dates for the tasks, not the category (or project as is defined in the tool).

My problem is that I have to delve into the tasks in order to set a start date and end date for the category sheep… similarly, i need to find out the earliest date and pass it back to the farming category to satisfy the parameters in the GanttTaskInfo function and GanttProjectInfo function.

Is there a way this can automatically be done considering I have no need for time scales for the categories. They are there for visual aid of knowing which tasks i’m looking at.

hope this clarifies my above post.

// couldn’t edit last post so posted new.

If like myself, you have a selection of tasks that belong to a category… for example:

-farming
------cows
------------morning feed(09:00 -> 10:00)
------chickens
------sheep
------------morning feed(09:00 -> 10:00)
------------take to field(11:00 -> 15:00)
------------sleep time(15:00 -> 17:30)

Farming is the category and so is sheep… I only have start and end dates for the tasks, not the category (or project as is defined in the tool).

My problem is that I have to delve into the tasks in order to set a start date and end date for the category sheep… similarly, i need to find out the earliest date and pass it back to the farming category to satisfy the parameters in the GanttTaskInfo function and GanttProjectInfo function.

Is there a way this can automatically be done considering I have no need for time scales for the categories. They are there for visual aid of knowing which tasks i’m looking at.

hope this clarifies my above post.

No, no such easy way. SO you do it right by supplying the earliest time.