diff --git a/src/version3/parameters/updatePlan.ts b/src/version3/parameters/updatePlan.ts index 0f21fc000..70161d1d5 100644 --- a/src/version3/parameters/updatePlan.ts +++ b/src/version3/parameters/updatePlan.ts @@ -1,6 +1,29 @@ +import { + CreateCrossProjectReleaseRequest, + CreateCustomFieldRequest, + CreateExclusionRulesRequest, + CreateIssueSourceRequest, + CreatePermissionRequest, + CreateSchedulingRequest, +} from '@jirajs/version3/models'; + export interface UpdatePlan { /** The ID of the plan. */ planId: number; /** Whether to accept group IDs instead of group names. Group names are deprecated. */ useGroupId?: boolean; + /** The cross-project releases to include in the plan. */ + crossProjectReleases?: CreateCrossProjectReleaseRequest[]; + /** The custom fields for the plan. */ + customFields?: CreateCustomFieldRequest[]; + exclusionRules?: CreateExclusionRulesRequest; + /** The issue sources to include in the plan. */ + issueSources?: CreateIssueSourceRequest[]; + /** The account ID of the plan lead. */ + leadAccountId?: string; + /** The plan name. */ + name?: string; + /** The permissions for the plan. */ + permissions?: CreatePermissionRequest[]; + scheduling?: CreateSchedulingRequest; } diff --git a/src/version3/plans.ts b/src/version3/plans.ts index a10f718b9..322a2a596 100644 --- a/src/version3/plans.ts +++ b/src/version3/plans.ts @@ -110,49 +110,6 @@ export class Plans { /** * Updates any of the following details of a plan using [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902). * - * - Name - * - LeadAccountId - * - Scheduling - * - * - Estimation with StoryPoints, Days or Hours as possible values - * - StartDate - * - * - Type with DueDate, TargetStartDate, TargetEndDate or DateCustomField as possible values - * - DateCustomFieldId - * - EndDate - * - * - Type with DueDate, TargetStartDate, TargetEndDate or DateCustomField as possible values - * - DateCustomFieldId - * - InferredDates with None, SprintDates or ReleaseDates as possible values - * - Dependencies with Sequential or Concurrent as possible values - * - IssueSources - * - * - Type with Board, Project or Filter as possible values - * - Value - * - ExclusionRules - * - * - NumberOfDaysToShowCompletedIssues - * - IssueIds - * - WorkStatusIds - * - WorkStatusCategoryIds - * - IssueTypeIds - * - ReleaseIds - * - CrossProjectReleases - * - * - Name - * - ReleaseIds - * - CustomFields - * - * - CustomFieldId - * - Filter - * - Permissions - * - * - Type with View or Edit as possible values - * - Holder - * - * - Type with Group or AccountId as possible values - * - Value - * * **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#permissions) required:** * _Administer Jira_ [global permission](https://confluence.atlassian.com/x/x4dKLg). * @@ -163,49 +120,6 @@ export class Plans { /** * Updates any of the following details of a plan using [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902). * - * - Name - * - LeadAccountId - * - Scheduling - * - * - Estimation with StoryPoints, Days or Hours as possible values - * - StartDate - * - * - Type with DueDate, TargetStartDate, TargetEndDate or DateCustomField as possible values - * - DateCustomFieldId - * - EndDate - * - * - Type with DueDate, TargetStartDate, TargetEndDate or DateCustomField as possible values - * - DateCustomFieldId - * - InferredDates with None, SprintDates or ReleaseDates as possible values - * - Dependencies with Sequential or Concurrent as possible values - * - IssueSources - * - * - Type with Board, Project or Filter as possible values - * - Value - * - ExclusionRules - * - * - NumberOfDaysToShowCompletedIssues - * - IssueIds - * - WorkStatusIds - * - WorkStatusCategoryIds - * - IssueTypeIds - * - ReleaseIds - * - CrossProjectReleases - * - * - Name - * - ReleaseIds - * - CustomFields - * - * - CustomFieldId - * - Filter - * - Permissions - * - * - Type with View or Edit as possible values - * - Holder - * - * - Type with Group or AccountId as possible values - * - Value - * * **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#permissions) required:** * _Administer Jira_ [global permission](https://confluence.atlassian.com/x/x4dKLg). * @@ -220,7 +134,16 @@ export class Plans { params: { useGroupId: parameters.useGroupId, }, - // todo + data: { + crossProjectReleases: parameters.crossProjectReleases, + customFields: parameters.customFields, + exclusionRules: parameters.exclusionRules, + issueSources: parameters.issueSources, + leadAccountId: parameters.leadAccountId, + name: parameters.name, + permissions: parameters.permissions, + scheduling: parameters.scheduling, + }, }; return this.client.sendRequest(config, callback);