Перейти к основному содержимому

getTaskByOutlineNumber

Description​

Finds a task by its outline number

getTaskByOutlineNumber: (code: string) => Task | null

Parameters​

  • code - (required) string - a dotted outline number such as "2.1"

Returns​

The matching loaded task, or null if the number is invalid or has no match.

Example​

const task = gantt.getTaskByOutlineNumber("2.1");

Details​

Each part of the outline number must be a positive integer without leading zeros. Pass the value from getOutlineNumber to look up a task.

This method is available in paid editions.

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.