LogoRobo.js
Packages@robojs/roadmap

UpdateCardInput

Type Alias: UpdateCardInput

type UpdateCardInput = {
  assignees: {
     id: string;
     name: string;
    }[];
  column: string;
  description: string;
  labels: string[];
  title: string;
};

Input required to update an existing roadmap card in the external provider.

Type declaration

NameTypeDescription
assignees?{ id: string; name: string; }[]Updated array of assignees to assign to the card. If omitted, existing assignees are unchanged. Each assignee must have a provider-specific ID that matches a valid user in the provider's system.
column?stringTarget column name where the card should be moved (e.g., 'In Progress', 'Done'). If omitted, the card remains in its current column.
description?stringUpdated detailed description or body content. If omitted, the existing description is unchanged.
labels?string[]Updated array of label names to associate with the card. Completely replaces existing labels - provide the full desired set. If omitted, existing labels are unchanged.
title?stringUpdated card title or summary. If omitted, the existing title is unchanged.

Remarks

This interface supports partial updates - only provided fields are changed in the provider. Omitted fields remain unchanged, allowing targeted edits without fetching and resending all card data.

Provider-specific considerations:

  • All fields are optional; at least one field should be provided for a meaningful update
  • Column names must match one of the columns returned by the provider's getColumns() method
  • Assignee IDs must be valid user identifiers in the provider's system
  • Labels completely replace existing labels; provide the full desired set
  • Some providers may have limitations (e.g., Jira supports only one assignee)

Example

import type { UpdateCardInput } from '@robojs/roadmap';

// Update only the title
const input1: UpdateCardInput = {
  title: 'Updated title'
};

// Update multiple fields
const input2: UpdateCardInput = {
  title: 'Add dark mode support',
  description: 'Implement dark mode theme across the application',
  column: 'In Progress',
  labels: ['enhancement', 'ui', 'wip']
};

On this page