Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
How to add predecessors to phases tasks by script? I'm trying to do it by this action script, however it's not working for me.
var myPhase = item;
var myPhaseGantt = myPhase.project;
var myPhaseGanttChildren = myPhaseGantt.children;
var myPredecessors = [];
var testPredecessor = myPhaseGantt.children[0];
myPredecessors.push(testPredecessor);
myPhaseGantt.children[1].predecessors = myPredecessors;
var endDebug = 1;
Solved! Go to Solution.