プロジェクトのプロファイルの取得
説明
指定したIDのプロジェクトのプロファイルを取得します。
プロジェクトのプロファイルとは
各プロジェクトで保持するプロファイルです。
必要権限
なし
URL
GET /project/projects/{projectId}/profile
パスパラメーター
| 名前 | 型 | 必須か | 説明 |
|---|---|---|---|
| projectId | string | ○ | プロジェクトID |
クエリパラメーター
| 名前 | 型 | 必須か | 説明 |
|---|---|---|---|
| includes | string | × | 追加で取得するプロファイルの詳細情報 ※includesを指定しない場合は、フィールド自体取得されません。 カンマ区切りで以下の値を複数指定できます。 ・ItemTypes:アイテムタイプ ・FieldTypes:フィールドタイプ ・StatusTypes:ステータスタイプ ・ProjectProperties:プロジェクト変数 |
レスポンス
| 名前 | 型 | 説明 |
|---|---|---|
| ー | ProjectProfile[] | 取得したプロファイル情報 |
エラーケース
なし
特記事項
なし。
サンプル
ID:27のプロジェクトのプロファイルを取得する
GET /project/projects/27/profile?includes=ItemTypes,FieldTypes,StatusTypes
Response
200 OK
[
{
"statusTypes": [
{
"id": "1",
"groupId": "1",
"name": "未着手",
"color": "#BDBDBD",
"code": "",
"description": "",
"displayOrder": 0.166666666666667
},
・
・
・
],
"itemTypes": [
・
・
・
{
"itemTypeId": "4",
"name": "パッケージ",
"systemName": "Package",
"code": "",
"color": "",
"description": "",
"iconName": "folder",
"baseType": "Task",
"itemTypeCategory": "WorkItem",
"isSystemItemType": true,
"isFolder": true,
"isContentType": false,
"canInputTimeEntry": false,
"config": {
"name": "パッケージ",
"allowedSubItemTypeIds": [
],
"allowedTimeEntryCategoryIds": [
],
"allowedProcessCategoryIds": [
],
"itemTypeId": null
},
"displayOrder": 0.666666666666667,
"initialStatusTypeId": null,
"isDeleted": false,
"fields": [
{
"fieldTypeId": "1",
"displayOrder": 0.0125,
"isDeleted": false,
"config": {
},
"isCustomized": false
},
・
・
・
],
"statusTypes": [
{
"statusTypeId": "1",
"progress": 0.0,
"isDeleted": false
},
・
・
・
],
"formLayouts": [
],
"isCustomized": false,
"isStatusCustomized": false
},
・
・
・
],
"fieldTypes": [
{
"id": "1",
"name": "ID",
"systemName": "Id",
"category": "Common",
"code": "",
"description": "",
"group": "システム",
"fieldCode": "1",
"dataType": "DTItem",
"isSystemField": true,
"isVisible": true,
"isCustomizable": false,
"isQueryable": true,
"allowedFieldCalcTypes": [
"None"
],
"defaultConfig": {
"profileId": "31",
"fieldTypeId": "1",
"name": "ID",
"isRequired": false,
"isEditable": false,
"defaultValue": "",
"allowedValues": "",
"minValue": "",
"maxValue": "",
"minLength": 0,
"maxLength": 0,
"validationRegex": "",
"format": "",
"isExpression": false,
"isChildRelated": false,
"expressions": [
],
"defaultFieldCalcType": "None",
"defaultFieldCalcTypeWithChildren": "None",
"minLines": 0,
"formatCategory": "",
"decimalDigits": 0,
"unitName": "",
"currency": "",
"useDigitSeparators": false,
"isDeleted": false,
"isDerived": true,
"isCustomized": false
}
},
・
・
・
],
"name": "プロファイル",
"versionName": "",
"code": "",
"description": "",
"revisedContent": "",
"profileNumber": "30",
"revision": 1,
"baseProfileId": "30",
"baseProfileNumber": "27",
"baseProfileName": null,
"isProjectPrivate": true,
"privateProjectId": "27",
"isPublished": true,
"profileCategoryId": "0",
"profileCategoryName": null,
"isDeleted": false,
"timeEntryCategoryRequiredInTimeEntry": false,
"processCategoryRequiredInTimeEntry": false,
"lastBaseAppliedAt": "2023-08-14T02:18:57Z",
"configUpdatedAt": "2023-07-29T23:09:12Z",
"isCustomized": false,
"metadata": {
},
"id": "31",
"createdAt": "2023-07-03T06:00:01Z",
"createdBy": "21",
"updatedAt": "2023-07-29T23:09:12Z",
"updatedBy": "21"
}
]
型定義
ProjectProfile
| 名前 | 型 | 説明 |
|---|---|---|
| id | string | プロファイルID |
| name | string | プロファイル名 |
| versionName | string | バージョン名 |
| code | string | プロファイルのコード |
| description | string | プロファイルの説明 |
| baseProfileId | ProfileId | 継承元プロファイルID |
| baseProfileName | string | 継承元プロファイル名 |
| revision | int | 改訂番号 |
| revisedContent | string | 改訂内容 |
| configUpdatedAt | DateTime | プロファイル設定更新日時 |
| isProjectPrivate | boolean | プロジェクトプロファイルか |
| privateProjectId | string | 所属するプロジェクトのID |
| isPublished | boolean | 公開状態 ・true:公開 ・false:非公開 |
| timeEntryCategoryRequiredInTimeEntry | boolean | 実績入力時に作業分類の設定を必要とするか。 trueの場合、タイムシートで作業分類の設定が必要になります。 |
| processCategoryRequiredInTimeEntry | boolean | 実績入力時に工程分類の設定を必要とするか。 trueの場合、タイムシートで工程分類の設定が必要になります。 |
| lastBaseAppliedAt | DateTime | 継承元プロファイルの最終反映日時 |
| itemTypes | ItemUse[] | 利用アイテムタイプ |
| fieldTypes | ProjectFieldType[] | 利用フィールドタイプ |
| statusTypes | ProjectStatusType[] | 利用スタータスタイプ |
| isDeleted | boolean | 削除されているか |
| projectProperties | ProjectProperty[] | プロジェクト変数 |
ItemUse
| 名前 | 型 | 説明 |
|---|---|---|
| ItemTypeId | string | フィールドタイプID |
| name | string | 名前 |
| systemName | string | システム名 |
| code | string | コード |
| description | string | 説明 |
| itemTypeCategory | string | アイテムタイプカテゴリ 以下の値を設定できます。 - Project:プロジェクト - WorkItem: ワークアイテム |
| color | Color | アイテムタイプの色 |
| iconName | string | アイコン名 |