Interface CreateStoryFromTemplateParams

Request parameters for creating a story from a story template. These parameters are merged with the values derived from the template.

interface CreateStoryFromTemplateParams {
    archived?: boolean;
    comments?: CreateStoryCommentParams[];
    completed_at_override?: string;
    created_at?: string;
    custom_fields?: CustomFieldValueParams[];
    custom_fields_add?: CustomFieldValueParams[];
    custom_fields_remove?: RemoveCustomFieldParams[];
    deadline?: string;
    description?: string;
    epic_id?: number;
    estimate?: number;
    external_id?: string;
    external_links?: string[];
    external_links_add?: string[];
    external_links_remove?: string[];
    file_ids?: number[];
    file_ids_add?: number[];
    file_ids_remove?: number[];
    follower_ids?: string[];
    follower_ids_add?: string[];
    follower_ids_remove?: string[];
    group_id?: string;
    iteration_id?: number;
    labels?: CreateLabelParams[];
    labels_add?: CreateLabelParams[];
    labels_remove?: RemoveLabelParams[];
    linked_file_ids?: number[];
    linked_file_ids_add?: number[];
    linked_file_ids_remove?: number[];
    move_to?: "last" | "first";
    name?: string;
    owner_ids?: string[];
    owner_ids_add?: string[];
    owner_ids_remove?: string[];
    project_id?: number;
    requested_by_id?: string;
    source_task_id?: number;
    started_at_override?: string;
    story_links?: CreateStoryLinkParams[];
    story_template_id: string;
    story_type?: "feature" | "chore" | "bug";
    tasks?: CreateTaskParams[];
    updated_at?: string;
    workflow_state_id?: number;
}

Properties

archived?: boolean

Controls the story's archived state.

An array of comments to add to the story.

completed_at_override?: string

A manual override for the time/date the Story was completed.

date-time

created_at?: string

The time/date the Story was created.

date-time

custom_fields?: CustomFieldValueParams[]

A map specifying a CustomField ID and CustomFieldEnumValue ID that represents an assertion of some value for a CustomField.

custom_fields_add?: CustomFieldValueParams[]

A map specifying a CustomField ID and CustomFieldEnumValue ID that represents an assertion of some value for a CustomField. These will be added to any fields provided by the template. Cannot be used in conjunction with custom_fields.

true

custom_fields_remove?: RemoveCustomFieldParams[]

A map specifying a CustomField ID. These will be removed from any fields provided by the template. Cannot be used in conjunction with custom_fields.

true

deadline?: string

The due date of the story.

date-time

description?: string

The description of the story.

100000

epic_id?: number

The ID of the epic the story belongs to.

int64

estimate?: number

The numeric point estimate of the story. Can also be null, which means unestimated.

int64

external_id?: string

This field can be set to another unique ID. In the case that the Story has been imported from another tool, the ID in the other tool can be indicated here.

external_links?: string[]

An array of External Links associated with this story.

external_links_add?: string[]

An array of External Links associated with this story. These will be added to any links provided by the template. Cannot be used in conjunction with external_links.

true

external_links_remove?: string[]

An array of External Links associated with this story. These will be removed from any links provided by the template. Cannot be used in conjunction with external_links.

true

file_ids?: number[]

An array of IDs of files attached to the story.

true

file_ids_add?: number[]

An array of IDs of files attached to the story in addition to files from the template. Cannot be used in conjunction with file_ids.

true

file_ids_remove?: number[]

An array of IDs of files removed from files from the template. Cannot be used in conjunction with file_ids.

true

follower_ids?: string[]

An array of UUIDs of the followers of this story.

true

follower_ids_add?: string[]

The UUIDs of the new followers to be added in addition to followers from the template. Cannot be used in conjunction with follower_ids.

true

follower_ids_remove?: string[]

The UUIDs of the new followers to be removed from followers from the template. Cannot be used in conjunction with follower_ids.

true

group_id?: string

The id of the group to associate with this story.

uuid

iteration_id?: number

The ID of the iteration the story belongs to.

int64

An array of labels attached to the story.

labels_add?: CreateLabelParams[]

An array of labels attached to the story in addition to the labels provided by the template. Cannot be used in conjunction with labels.

true

labels_remove?: RemoveLabelParams[]

An array of labels to remove from the labels provided by the template. Cannot be used in conjunction with labels.

true

linked_file_ids?: number[]

An array of IDs of linked files attached to the story.

true

linked_file_ids_add?: number[]

An array of IDs of linked files attached to the story in addition to files from the template. Cannot be used in conjunction with linked_files.

true

linked_file_ids_remove?: number[]

An array of IDs of linked files removed from files from the template. Cannot be used in conjunction with linked_files.

true

move_to?: "last" | "first"

One of "first" or "last". This can be used to move the given story to the first or last position in the workflow state.

name?: string

The name of the story. Must be provided if the template does not provide a name.

1

512

owner_ids?: string[]

An array of UUIDs of the owners of this story.

true

owner_ids_add?: string[]

The UUIDs of the new owners to be added in addition to owners from the template. Cannot be used in conjunction with owners.

true

owner_ids_remove?: string[]

The UUIDs of the new owners to be removed from owners from the template. Cannot be used in conjunction with owners.

true

project_id?: number

The ID of the project the story belongs to.

int64

requested_by_id?: string

The ID of the member that requested the story.

uuid

source_task_id?: number

Given this story was converted from a task in another story, this is the original task ID that was converted to this story.

int64

started_at_override?: string

A manual override for the time/date the Story was started.

date-time

story_links?: CreateStoryLinkParams[]

An array of story links attached to the story.

story_template_id: string

The id of the story template used to create this story.

uuid

story_type?: "feature" | "chore" | "bug"

The type of story (feature, bug, chore).

An array of tasks connected to the story.

updated_at?: string

The time/date the Story was updated.

date-time

workflow_state_id?: number

The ID of the workflow state the story will be in.

int64