Project

General

Profile

Change parent task Start Date

Added by Szymon Nowak over 12 years ago

I don't know it's a bug or it should work in this way. Why i can't remove parent's task start date if it has children? I understand "Parent task" as grouping task. There are different relations to relate tasks, so "Parent" should mean just grouping more tasks in one bigger task - correct me if i'm wrong. In this case "Parent task" should has start date as MIN in children's start dates and end Date as MAX in children's end dates.

Why am i opening such discusion? I've created many tasks from code comments and created them via REST Api and then i created all of them with start date == current date, but later most of those issues were grouped in more general parent tasks and moved to different versions - some of them don't have any dates (Start, End etc). Field "Start date" in children tasks can't be set to null because of grouping and parent task has date "Start date" and i'm unable to change this date because this task has children.

Any idea how should i fix it?

I think parent task should has start date => min of children's start dates, end date => max of children's end dates, or empty if every children has empty start/end date


Replies (1)

RE: Change parent task Start Date - Added by Mischa The Evil over 12 years ago

Szymon Nowak wrote:

I don't know it's a bug or it should work in this way. Why i can't remove parent's task start date if it has children?

It's expected behavior. The start date of parent issues (along with some other issue attributes) is read-only and its value will be computed automatically as a summation / roll-up of its subtasks.

I think parent task should has start date => min of children's start dates, end date => max of children's end dates, or empty if every children has empty start/end date

IIRC this is the used paradigm for the start date attribute (and others) for parent issues.

Some references:
  • #443 - Subtask implementation
  • #5490 - Feature request to discuss a possible change of the current implementation
  • #8200 - Feature request to prevent clearing start date whenever subtasks are removed from parent
    (1-1/1)