Skip to main content

createFeature

client.roadmap.createFeature(phaseId: string, data: CreateFeatureRequest): Promise<RoadmapFeature>

Creates a new feature within a specific phase.

Adds a feature to the roadmap under the specified phase. Features represent discrete pieces of functionality planned for delivery.

Parameters

ParameterTypeRequiredDescription
phaseIdstringYesThe unique identifier of the phase to add the feature to
dataCreateFeatureRequestYesThe feature creation payload including title and description

Returns

Promise<RoadmapFeature> — A promise that resolves to the newly created RoadmapFeature

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.roadmap.createFeature('phaseId', /* CreateFeatureRequest */);
console.log(result);