predecessorId String|Number|Object

The id of the predecessor task.

Example - get the dependency predecessorId field

var dependency = new{
    id: 1,
    predecessorId: 1,
    successorId: 2,
    type: 0
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(dependency.predecessorId); // outputs "1"
In this article
Not finding the help you need? Improve this article