getTaskByWBSCode
Description
Returns a task by its WBS code
getTaskByWBSCode: (code: string) => Task
Parameters
code- (required) string - the WBS code of the task
Returns
task- (Task) - a task object
Example
const task = gantt.getTaskByWBSCode("1.2");
// => {id:"t1", text:"Task #1, unscheduled: true, duration: 1, …}
Related samples
Details
This legacy method looks up a display-order number from getWBSCode. For a canonical outline number, use getTaskByOutlineNumber.
Related API
Related Guides
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.