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.
processes → processIds in the body and the response: the organization's processes (ObjectIds, _id in GET /client/{clientId}/process; at least one). Each becomes a process on the project with its own processOnProjectId, the QA workflow and the default fields of its baseType. 422: processNotOfClient, invalidProcessId (also for a PROCESS_* value).Authorization: Bearer ********************curl --location 'https://app.hustro.com/api/v2/project/' \
--header 'hustro-client: web' \
--header 'hustro-client-version: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"timezone": "Europe/Warsaw",
"budget": 10000000,
"currency": "pln",
"localeCode": "pl",
"clientId": "5e41892cd6713c6ae9173129",
"projectStartDate": "2023-03-01T00:00:00+01:00",
"projectEndDate": "2028-03-01T23:59:59.999+01:00",
"name": "Test project Apidog",
"processIds": [
"6750a1f2c3d4e5f6a7b8c9d1",
"6750a1f2c3d4e5f6a7b8c9d2",
"6750a1f2c3d4e5f6a7b8c9d3"
]
}'