PT-7175 — organization processes (release with mobile 3.16; not on production yet). Process ids become ObjectIds and the fields holding them get new names: processOnProjectId/processOnProjectIds— a process on the project (_idinGET /project/{projectId}/process);processId/processIds— the organization's process (_idinGET /client/{clientId}/process). Read a process's type, name, code and colours fromGET /project/{projectId}/process, matched byprocessOnProjectId— never from the id. Issue writes keep accepting the oldprocessfield andPROCESS_*values for about a month; every other write takes only the new names and ids.
process → processOnProjectId in the response. In the body processOnProjectId may be sent but is ignored — an issue's process cannot change after creation.POST / PUT issue, until the release with mobile 3.18 — PT-7577): the old field process (its value goes to processOnProjectId; when both are sent, processOnProjectId is kept) and a starter type PROCESS_*, in any letter case, as the value of either field — mapped to the project's process of that type; a type not on the project is dropped from the body, since an update keeps the issue's process (on POST it is 422 processNotOnProject). Responses carry only processOnProjectId.curl --location --request PUT 'https://app.hustro.com/api/v2/project//issue/' \
--header 'hustro-client: ' \
--header 'hustro-client-version: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"primaryData": {
"title": "nowy tytu\u0142",
"description": "bbb aaa fff fff rrr e",
"subcontractors": [
"{{subcontractor1_Id}}"
],
"site": "",
"level": "",
"assignee": null,
"executor": null,
"location": {
"selectedLocationType": "pin",
"positionOnMap": {
"x": 0.42,
"y": 0.58
},
"localizedOnMap": {
"documentationId": "65f0c0ffee0000000000d001",
"versionId": "65f0c0ffee0000000000e002"
}
}
},
"extendedData": {
"workTypes": [
"{{workType1_Id}}"
],
"finalCompletionDate": "2021-03-15T23:59:59.999+01:00"
}
}'{
"documents": [
{
"description": "string",
"data": {
"bucketName": "hustro-documents-staging",
"documentType": "FILE",
"extension": "jpg",
"isDrawn": true,
"key": "client/635a7a1e1ed39332efecfd94/project/635a7a1e22eda9be81e7c88e/issue/63a2f0c5b3b49a3d8b7b5d42/event/63ac505fbbaa4ce8525afca8/document/63ac51e9bbaa4ce8525b04e9.jpg",
"name": "pexels-olga-lioncat-7245366",
"thumbnailKey": "client/635a7a1e1ed39332efecfd94/project/635a7a1e22eda9be81e7c88e/issue/63a2f0c5b3b49a3d8b7b5d42/event/63ac505fbbaa4ce8525afca8/document/63ac51e9bbaa4ce8525b04e9_thumbnail.jpg",
"type": "image/jpeg",
"uploadStatus": "SUCCESS",
"url": "string"
},
"ifcConversion": {
"status": "queued",
"code": "TOO_COMPLEX",
"updatedAt": "2026-11-21T14:15:00.000+01:00"
},
"deleted": true,
"_id": "5f479169f7ef7fe33b3cca36",
"createdAt": "2020-12-01T11:32:01+01:00",
"createdBy": "5f479169f7ef7fe33b3cca36",
"modifiedAt": "2020-12-01T11:32:01+01:00",
"modifiedBy": "5f479169f7ef7fe33b3cca36"
}
],
"hashtag": "da9b",
"inspection": "5f479169f7ef7fe33b3cca36",
"protocolItem": "5f479169f7ef7fe33b3cca36",
"userAccesses": [
{
"accessLevel": "EDIT",
"accessingUser": "5f479169f7ef7fe33b3cca36",
"deleted": true,
"_id": "5f479169f7ef7fe33b3cca36",
"createdAt": "2020-12-01T11:32:01+01:00",
"createdBy": "5f479169f7ef7fe33b3cca36",
"modifiedAt": "2020-12-01T11:32:01+01:00",
"modifiedBy": "5f479169f7ef7fe33b3cca36"
}
],
"events": [
{
"description": [
{
"type": "text",
"text": "some text"
}
],
"documents": [
{
"description": "string",
"data": {
"bucketName": "hustro-documents-staging",
"documentType": "FILE",
"extension": "jpg",
"isDrawn": true,
"key": "client/635a7a1e1ed39332efecfd94/project/635a7a1e22eda9be81e7c88e/issue/63a2f0c5b3b49a3d8b7b5d42/event/63ac505fbbaa4ce8525afca8/document/63ac51e9bbaa4ce8525b04e9.jpg",
"name": "pexels-olga-lioncat-7245366",
"thumbnailKey": "client/635a7a1e1ed39332efecfd94/project/635a7a1e22eda9be81e7c88e/issue/63a2f0c5b3b49a3d8b7b5d42/event/63ac505fbbaa4ce8525afca8/document/63ac51e9bbaa4ce8525b04e9_thumbnail.jpg",
"type": "image/jpeg",
"uploadStatus": "SUCCESS",
"url": "string"
},
"ifcConversion": {
"status": "queued",
"code": "TOO_COMPLEX",
"updatedAt": "2026-11-21T14:15:00.000+01:00"
},
"deleted": true,
"_id": "5f479169f7ef7fe33b3cca36",
"createdAt": "2020-12-01T11:32:01+01:00",
"createdBy": "5f479169f7ef7fe33b3cca36",
"modifiedAt": "2020-12-01T11:32:01+01:00",
"modifiedBy": "5f479169f7ef7fe33b3cca36"
}
],
"title": "string",
"deleted": true,
"_id": "5f479169f7ef7fe33b3cca36",
"createdAt": "2020-12-01T11:32:01+01:00",
"createdBy": "5f479169f7ef7fe33b3cca36",
"modifiedAt": "2020-12-01T11:32:01+01:00",
"modifiedBy": "5f479169f7ef7fe33b3cca36"
}
],
"linkedDocumentation": [
{
"_id": "string",
"type": "documentation",
"documentationId": "string",
"versionId": "string",
"sourceDocumentId": "string",
"createdAt": "string",
"createdBy": "string",
"modifiedAt": "string",
"modifiedBy": "string"
}
],
"acceptedVersions": [
{
"_id": "string",
"documentationId": "string",
"versionId": "string",
"createdAt": "string",
"createdBy": "string",
"modifiedAt": "string",
"modifiedBy": "string"
}
],
"deleted": true,
"_id": "5f479169f7ef7fe33b3cca36",
"createdAt": "2020-12-01T11:32:01+01:00",
"createdBy": "5f479169f7ef7fe33b3cca36",
"modifiedAt": "2020-12-01T11:32:01+01:00",
"modifiedBy": "5f479169f7ef7fe33b3cca36",
"processOnProjectId": "64ed771d95a1e3d565839d18",
"stage": "DRAFT",
"stageId": "string",
"primaryData": {
"assignee": "5f479169f7ef7fe33b3cca36",
"contractNumbers": [
"5e417e81cc65ea28d1ff0fac",
"6396dfeca92a10590a6ada9b"
],
"title": "string",
"description": "string",
"detectionDate": "2020-12-01T11:32:01+01:00",
"executor": "5f479169f7ef7fe33b3cca36",
"site": "5f479169f7ef7fe33b3cca36",
"level": "5f479169f7ef7fe33b3cca36",
"subcontractors": [
"5e417e81cc65ea28d1ff0fac",
"6396dfeca92a10590a6ada9b"
],
"location": {
"selectedLocationType": "pin",
"positionOnMap": {
"x": 0,
"y": 0
},
"targetAreas": [
[
{
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
}
]
],
"finalAreas": [
[
{
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
}
]
],
"localizedOnMap": {
"documentationId": "string",
"versionId": "string"
}
}
},
"extendedData": {
"costCode": "string",
"estimatedCost": [
{
"cost": 0,
"coveredBy": "5f479169f7ef7fe33b3cca36"
}
],
"finalCost": [
{
"outstanding": 0,
"settled": 0,
"coveredBy": "5f479169f7ef7fe33b3cca36"
}
],
"finalCompletionDate": "2020-12-01T11:32:01+01:00",
"targetCompletionDate": "2020-12-01T11:32:01+01:00",
"impact": "5f479169f7ef7fe33b3cca36",
"proposedCorrectiveAction": "5f479169f7ef7fe33b3cca36",
"rootCauses": [
"5e417e81cc65ea28d1ff0fac",
"6396dfeca92a10590a6ada9b"
],
"solutionMethod": "string",
"solutionProposal": "string",
"subcontractorRepresentative": "string",
"workTypes": [
"5e417e81cc65ea28d1ff0fac",
"6396dfeca92a10590a6ada9b"
],
"effect": "5f479169f7ef7fe33b3cca36",
"daysOfInabilityToWork": 0,
"personUnableToWork": "string",
"circumstances": "5f479169f7ef7fe33b3cca36",
"environmentalAspect": "5f479169f7ef7fe33b3cca36"
},
"mainImage": "5f479169f7ef7fe33b3cca36"
}