Class ProjectFieldUpdaterGroup

Source
Expand description

Class for updating multiple project fields.

remarks

Created by ProjectFieldValueUpdaterFactory.create to aggregate multiple BasicProjectFieldValueUpdater instances.

Constructors§

Source§

new ProjectFieldUpdaterGroup(
    fieldUpdaters: BasicProjectFieldValueUpdater[],
): ProjectFieldUpdaterGroup

Constructor for ProjectFieldUpdaterGroup.

Properties§

§fieldUpdaters: BasicProjectFieldValueUpdater[]

Methods§

Source§

increment(
    fieldNameSelector: (s: OrganizationConfig) => string | undefined,
): Promise<void>

Increments the number field in all projects.

Source§

updateDate(
    fieldNameSelector: (s: OrganizationConfig) => string | undefined,
    newFieldValue: string,
    condition?: (currentFieldVal: string) => boolean,
): Promise<void>

Updates the date field in all projects.