Page 1 of 1

[ANGULAR] Custom wbs in Gantt

Posted: Sat Jan 28, 2023 5:10 pm
by johanbrodin

Hi,

We would like to set the wbs which is doable with below code. However indenting tasks recalculate them so how do we control wbs ourself (for a subset of tasks on the gantt).

  var added: any = this.gantt.taskStore.rootNode.appendChild({
            wbsValue: issue.issue, 
            name: issue.title,
            duration: 1,
            iconCls: "b-fa b-fa-fire"
 });

Re: [ANGULAR] Custom wbs in Gantt

Posted: Mon Jan 30, 2023 4:48 am
by alex.l

It is not possible now to fully disable wbsCode calculations and use custom values.
If you need that, why don't you add a new field for TaskModel and use your own values and logic?


Re: [ANGULAR] Custom wbs in Gantt

Posted: Mon Jan 30, 2023 7:44 pm
by johanbrodin

Adding our own field will also do the trick. We will go that way so please close this ticket.