> ## 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

> Nextedy GANTT provides three scripting entry points that let you customize data preparation, chart behavior, and dynamic content.

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>;
};

## Guides in This Section

**[Write Item Scripts](/gantt/guides/scripting/item-script-basics)** --- Learn the basics of server-side item scripts, including the `task` and `wi` variables, reading work item fields, and passing custom data to the client.

**[Write Gantt Config Scripts](/gantt/guides/scripting/gantt-config-script)** --- Configure chart behavior at load time using JavaScript snippets in the Advanced > Gantt Config Script parameter.

**[Write Page Scripts with Velocity](/gantt/guides/scripting/page-script)** --- Use Apache Velocity templates to query Polarion data and inject dynamic content into the Gantt page.

**[Color Logic Script Examples](/gantt/guides/scripting/color-logic-scripts)** --- Apply custom color logic to task bars based on work item fields, status, or priority.

**[Calculate Progress with Scripts](/gantt/guides/scripting/progress-calculation-scripts)** --- Override the default progress calculation with custom formulas that aggregate child task data.

**[Create Markers with Scripts](/gantt/guides/scripting/marker-scripts)** --- Add custom vertical markers to the Gantt timeline using the markers scripting API.

**[Migrate Scripts for Polarion 2304+](/gantt/guides/scripting/script-migration-2304)** --- Update existing scripts to work with the breaking API changes introduced in Polarion 2304 and later.

**[Debug Script Errors](/gantt/guides/scripting/debug-scripts)** --- Diagnose and fix common script errors using the Gantt error indicator and browser developer tools.

<Tip title="Start with item scripts">
  If you are new to Gantt scripting, begin with [Write Item Scripts](/gantt/guides/scripting/item-script-basics) to understand the core `task` and `wi` variables. Most customizations build on this foundation.
</Tip>

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