Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[31362] Fix api description of status

Oliver Günther1bbbdc3d21c3
diff --git a/docs/api/apiv3/endpoints/projects.apib b/docs/api/apiv3/endpoints/projects.apib
index f8763ff9ce1..73d0119de7f 100644
--- a/docs/api/apiv3/endpoints/projects.apib
+++ b/docs/api/apiv3/endpoints/projects.apib
@@ -30,39 +30,21 @@ Depending on custom fields defined for projects, additional links might exist.
## Local Properties
-| Property | Description | Type | Constraints | Supported operations |
-| :---------: | ------------- | ---- | ----------- | -------------------- |
-| id | Projects's id | Integer | x > 0 | READ/WRITE |
-| identifier | | String | | READ/WRITE |
-| name | | String | | READ/WRITE |
-| active | Indicates whether the project is currently active or already archived | Boolean | | READ/WRITE |
-| status | Denotes the status of the project, so wether the project is on track, at risk is having trouble. | ProjectStatus | | READ/WRITE |
-| public | Indicates whether the project is accessible for everybody | Boolean | | READ/WRITE |
-| description | | Formattable | | READ/WRITE |
-| createdAt | Time of creation | DateTime | | READ |
-| updatedAt | Time of the most recent change to the project | DateTime | | READ |
+| Property | Description | Type | Constraints | Supported operations |
+| :---------------------:| ------------- | ---- | ----------- | -------------------- |
+| id | Projects's id | Integer | x > 0 | READ/WRITE |
+| identifier | | String | | READ/WRITE |
+| name | | String | | READ/WRITE |
+| active | Indicates whether the project is currently active or already archived | Boolean | | READ/WRITE |
+| status | Denotes the status of the project, so wether the project is on track, at risk is having trouble. | String | "on track", "at risk" or "off track" | READ/WRITE |
+| statusExplanation | A text detailing and explaining why the project has the reported status | Formattable | | READ/WRITE |
+| public | Indicates whether the project is accessible for everybody | Boolean | | READ/WRITE |
+| description | | Formattable | | READ/WRITE |
+| createdAt | Time of creation | DateTime | | READ |
+| updatedAt | Time of the most recent change to the project | DateTime | | READ |
Depending on custom fields defined for projects, additional properties might exist.
-### Project Status
-
-A `ProjectStatus` denotes the state a project is in. As such, it represents the assessment of the responsible person whether a project is:
-* on track
-* at risk
-* off track
-
-This assessment is represented by the `code` property. The options are fixed values that cannot be changed.
-
-To explain the assumption, a text property called `explanation` is also available which is a formattable and in wich the person can enter arbitrary text.
-
-#### Local Properties
-
-| Property | Description | Type | Constraints | Supported operations |
-| :---------: | ------------- | ---- | ----------- | -------------------- |
-| code | The coded status, a project is in | String | "on track", "at risk" or "off track" | READ/WRITE |
-| explanation | A text detailing and explaining why the project has the reported status | Formattable | | READ/WRITE |
-
-
## Project [/api/v3/projects/{id}]
+ Model
@@ -111,13 +93,11 @@ To explain the assumption, a text property called `explanation` is also availabl
"name": "Project example",
"active": true,
"public": false,
- "status": {
- "code": "on track",
- "explanation": {
- "format": "markdown",
- "raw": "Everything **fine**",
- "html": "<p>Everything <strong>fine</strong></p>"
- }
+ "status": "on track",
+ "statusExplanation": {
+ "format": "markdown",
+ "raw": "Everything **fine**",
+ "html": "<p>Everything <strong>fine</strong></p>"
},
"description": {
"format": "markdown",
@@ -169,9 +149,7 @@ Updates the given project by applying the attributes provided in the body.
{
"name": "A new project name",
- "status": {
- "code": "at risk"
- }
+ "status": "at risk",
"_links": {
"customField35": {
"href": "/api/v3/users/3"
@@ -353,13 +331,11 @@ the project scheduled for deletion, it is archived at once.
"identifier": "a_project",
"name": "A project",
"active": true,
- "status": {
- "code": "on track",
- "explanation": {
- "format": "markdown",
- "raw": "Everything **fine**",
- "html": "<p>Everything <strong>fine</strong></p>"
- }
+ "status": "on track",
+ "statusExplanation": {
+ "format": "markdown",
+ "raw": "Everything **fine**",
+ "html": "<p>Everything <strong>fine</strong></p>"
},
"public": false,
"description": {
@@ -400,13 +376,11 @@ the project scheduled for deletion, it is archived at once.
"identifier": "another_project",
"name": "Another project",
"active": false,
- "status": {
- "code": "off track",
- "explanation": {
- "format": "markdown",
- "raw": "Uh **oh**",
- "html": "<p>Uh <strong>oh</strong></p>"
- }
+ "status": "off track",
+ "statusSxplanation": {
+ "format": "markdown",
+ "raw": "Uh **oh**",
+ "html": "<p>Uh <strong>oh</strong></p>"
},
"public": true,
"description": {
@@ -469,13 +443,11 @@ You can use the form and schema to be retrieve the valid attribute values and by
"identifier": "new_project_identifier",
"name": "New project name",
"customField35": "Text custom field value",
- "status": {
- "code": "on track",
- "explanation": {
- "format": "markdown",
- "raw": "Everything **fine**",
- "html": "<p>Everything <strong>fine</strong></p>"
- }
+ "status": "on track",
+ "statusExplanation": {
+ "format": "markdown",
+ "raw": "Everything **fine**",
+ "html": "<p>Everything <strong>fine</strong></p>"
},
"_links": {
"customField12": {
@@ -591,12 +563,19 @@ You can use the form and schema to be retrieve the valid attribute values and by
"writable": true
},
"status": {
- "type": "ProjectStatus",
+ "type": "String",
"name": "Status",
"required": true,
"hasDefault": true,
"writable": true
},
+ "statusExplanation": {
+ "type": "Formattable",
+ "name": "Status explanation",
+ "required": false,
+ "hasDefault": false,
+ "writable": true
+ },
"parent": {
"type": "Project",
"name": "Subproject of",
@@ -719,13 +698,11 @@ For more details and all possible responses see the general specification of [Fo
"html": ""
},
"customField42": null,
- "status": {
- "code": null,
- "explanation": {
- "format": "markdown",
- "raw": null,
- "html": "<p></p>"
- }
+ "status": null,
+ "statusExplanation": {
+ "format": "markdown",
+ "raw": null,
+ "html": "<p></p>"
},
"_links": {
"customField26": {
@@ -791,7 +768,7 @@ For more details and all possible responses see the general specification of [Fo
"writable": true
},
"status": {
- "type": "ProjectStatus",
+ "type": "String",
"name": "Status",
"required": true,
"hasDefault": true,
@@ -1036,13 +1013,11 @@ For more details and all possible responses see the general specification of [Fo
"html": ""
},
"customField42": null,
- "status": {
- "code": "at risk",
- "explanation": {
- "format": "markdown",
- "raw": "There is some risk of failure",
- "html": "<p>There is some risk of failure</p>"
- }
+ "status": "at risk",
+ "statusExplanation": {
+ "format": "markdown",
+ "raw": "There is some risk of failure",
+ "html": "<p>There is some risk of failure</p>"
},
"_links": {
"customField26": {
@@ -1108,7 +1083,7 @@ For more details and all possible responses see the general specification of [Fo
"writable": true,
},
"status": {
- "type": "ProjectStatus",
+ "type": "String",
"name": "Status",
"required": true,
"hasDefault": true,
@@ -1350,13 +1325,11 @@ For more details and all possible responses see the general specification of [Fo
"identifier": "a_project",
"name": "A project",
"active": true,
- "status": {
- "code": "on track",
- "explanation": {
- "format": "markdown",
- "raw": "Everything **fine**",
- "html": "<p>Everything <strong>fine</strong></p>"
- }
+ "status": "on track",
+ "statusExplanation": {
+ "format": "markdown",
+ "raw": "Everything **fine**",
+ "html": "<p>Everything <strong>fine</strong></p>"
},
"public": false,
"description": {
@@ -1394,13 +1367,11 @@ For more details and all possible responses see the general specification of [Fo
"identifier": "another_project",
"name": "Another project",
"active": true,
- "status": {
- "code": "on track",
- "explanation": {
- "format": "markdown",
- "raw": "Everything super **fine**",
- "html": "<p>Everything super <strong>fine</strong></p>"
- }
+ "status": "on track",
+ "statusExplanation": {
+ "format": "markdown",
+ "raw": "Everything super **fine**",
+ "html": "<p>Everything super <strong>fine</strong></p>"
},
"public": true,
"description": {
@@ -1496,13 +1467,11 @@ For instance to find all parent candidates with "rollout" in their name:
"html": "<p>Lorem <strong>ipsum</strong> dolor sit amet</p>"
},
"active": true,
- "status": {
- "code": "on track",
- "explanation": {
- "format": "markdown",
- "raw": "Everything **fine**",
- "html": "<p>Everything <strong>fine</strong></p>"
- }
+ "status": "on track",
+ "statusExplanation": {
+ "format": "markdown",
+ "raw": "Everything **fine**",
+ "html": "<p>Everything <strong>fine</strong></p>"
},
"createdAt": "2014-05-21T08:51:20Z",
"updatedAt": "2014-05-21T08:51:20Z"