forked from MrRefactoring/jira.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreateProjectDetails.ts
101 lines (101 loc) · 5.01 KB
/
createProjectDetails.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/** Details about the project. */
export interface CreateProjectDetails {
/**
* Project keys must be unique and start with an uppercase letter followed by one or more uppercase alphanumeric
* characters. The maximum length is 10 characters.
*/
key: string;
/** The name of the project. */
name: string;
/** A brief description of the project. */
description?: string;
/**
* The account ID of the project lead. Either `lead` or `leadAccountId` must be set when creating a project. Cannot be
* provided with `lead`.
*/
leadAccountId: string;
/** A link to information about this project, such as project documentation */
url?: string;
/** The default assignee when creating issues for this project. */
assigneeType?: string;
/** An integer value for the project's avatar. */
avatarId?: number;
/**
* The ID of the issue security scheme for the project, which enables you to control who can and cannot view issues.
* Use the [Get issue security schemes](#api-rest-api-3-issuesecurityschemes-get) resource to get all issue security
* scheme IDs.
*/
issueSecurityScheme?: number;
/**
* The ID of the permission scheme for the project. Use the [Get all permission
* schemes](#api-rest-api-3-permissionscheme-get) resource to see a list of all permission scheme IDs.
*/
permissionScheme?: number;
/**
* The ID of the notification scheme for the project. Use the [Get notification
* schemes](#api-rest-api-3-notificationscheme-get) resource to get a list of notification scheme IDs.
*/
notificationScheme?: number;
/**
* The ID of the project's category. A complete list of category IDs is found using the [Get all project
* categories](#api-rest-api-3-projectCategory-get) operation.
*/
categoryId?: number;
/**
* The [project
* type](https://confluence.atlassian.com/x/GwiiLQ#Jiraapplicationsoverview-Productfeaturesandprojecttypes), which
* defines the application-specific feature set. If you don't specify the project template you have to specify the
* project type.
*/
projectTypeKey: 'business' | 'service_desk' | 'software' | string;
/**
* A predefined configuration for a project. The type of the `projectTemplateKey` must match with the type of the
* `projectTypeKey`.
*/
projectTemplateKey?:
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-content-management'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-document-approval'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-lead-tracking'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-process-control'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-procurement'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-project-management'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-recruitment'
| 'com.atlassian.jira-core-project-templates:jira-core-simplified-task-tracking'
| 'com.atlassian.servicedesk:simplified-it-service-management'
| 'com.atlassian.servicedesk:simplified-general-service-desk'
| 'com.atlassian.servicedesk:simplified-internal-service-desk'
| 'com.atlassian.servicedesk:simplified-external-service-desk'
| 'com.atlassian.servicedesk:simplified-hr-service-desk'
| 'com.atlassian.servicedesk:simplified-facilities-service-desk'
| 'com.atlassian.servicedesk:simplified-legal-service-desk'
| 'com.pyxis.greenhopper.jira:gh-simplified-agility-kanban'
| 'com.pyxis.greenhopper.jira:gh-simplified-agility-scrum'
| 'com.pyxis.greenhopper.jira:gh-simplified-basic'
| 'com.pyxis.greenhopper.jira:gh-simplified-kanban-classic'
| 'com.pyxis.greenhopper.jira:gh-simplified-scrum-classic'
| string;
/**
* The ID of the workflow scheme for the project. Use the [Get all workflow
* schemes](#api-rest-api-3-workflowscheme-get) operation to get a list of workflow scheme IDs. If you specify the
* workflow scheme you cannot specify the project template key.
*/
workflowScheme?: number;
/**
* The ID of the issue type screen scheme for the project. Use the [Get all issue type screen
* schemes](#api-rest-api-3-issuetypescreenscheme-get) operation to get a list of issue type screen scheme IDs. If you
* specify the issue type screen scheme you cannot specify the project template key.
*/
issueTypeScreenScheme?: number;
/**
* The ID of the issue type scheme for the project. Use the [Get all issue type
* schemes](#api-rest-api-3-issuetypescheme-get) operation to get a list of issue type scheme IDs. If you specify the
* issue type scheme you cannot specify the project template key.
*/
issueTypeScheme?: number;
/**
* The ID of the field configuration scheme for the project. Use the [Get all field configuration
* schemes](#api-rest-api-3-fieldconfigurationscheme-get) operation to get a list of field configuration scheme IDs.
* If you specify the field configuration scheme you cannot specify the project template key.
*/
fieldConfigurationScheme?: number;
}