> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nextedy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Scripting API

> Nextedy GANTT provides a scripting API that enables you to customize Gantt chart behavior, appearance, and data processing.

export const LastReviewed = ({date}) => {
  if (!date) return null;
  const formatted = new Date(`${date}T00:00:00Z`).toLocaleDateString("en-US", {
    year: "numeric",
    month: "long",
    day: "numeric",
    timeZone: "UTC"
  });
  return <p className="mt-10 text-sm text-gray-400 dark:text-zinc-500 not-prose">
      Last reviewed on {formatted}
    </p>;
};

<Columns cols={3}>
  <Card title="Item Script API (Task and Work Item Objects)" icon="code" href="/gantt/reference/api/item-script-api">
    Access and modify task properties and Polarion work item data during server-side data loading. Control colors, labels, progress, and field values per work item.
  </Card>

  <Card title="Gantt Config Script API" icon="gear" href="/gantt/reference/api/config-script-api">
    Configure client-side Gantt behavior including templates, event handlers, drag settings, and visual properties. Runs once when the chart initializes.
  </Card>

  <Card title="Marker Factory API" icon="file" href="/gantt/reference/api/markers-api">
    Add vertical milestone markers to the Gantt timeline. Create markers from Polarion plans, work items, or custom dates with configurable labels and colors.
  </Card>

  <Card title="Page Parameters API" icon="file" href="/gantt/reference/api/page-parameters-api">
    Define user-input parameters accessible in the maximized Gantt view toolbar. Use parameter values in Item Scripts for dynamic filtering and behavior.
  </Card>

  <Card title="Velocity Context Variables" icon="file" href="/gantt/reference/api/velocity-context">
    Access Polarion server-side variables in script pre-processing. Use project, user, and service objects to generate dynamic script content.
  </Card>
</Columns>

<Tip title="Script Execution Order">
  Velocity context variables are resolved first (server-side), then Item Scripts execute per work item during data loading, and finally the Gantt Config Script runs once on the client when the chart initializes. The Marker Factory executes alongside Item Scripts on the server.
</Tip>

## Related Pages

* [Widget Parameters](/gantt/reference/widget-parameters/index) -- configure scripts via widget parameter fields
* [Configuration Properties](/gantt/reference/configuration/index) -- global administration properties
* [Item Color Legend](/gantt/reference/item-color-legend) -- default color behavior that scripts can override

<LastReviewed date="2026-07-02" />
