processOnProjectId = _id here. label: the user's language, else the project's, else the first name of the process.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.
_id is the process on the project (an ObjectId, different on every project; was a PROCESS_* type); added processId, type, baseType, isCustom, textColor, icon, isAvailableForInspection; color is upper-case.curl --location --request GET 'https://app.hustro.com/api/v2/project//process' \
--header 'hustro-client: m2m' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'[
{
"_id": "6750b2e4c3d4e5f6a7b8c9e1",
"processId": "6750a1f2c3d4e5f6a7b8c9d1",
"type": "PROCESS_QA",
"baseType": "PROCESS_QA",
"isCustom": false,
"label": "Jakość",
"code": "QA",
"color": "#315FA3",
"textColor": "#FFFFFF",
"icon": "squareFoot",
"isAvailableForInspection": true,
"workflowId": "6750c3a5c3d4e5f6a7b8c9f1"
},
{
"_id": "6750b2e4c3d4e5f6a7b8c9e2",
"processId": "6750a1f2c3d4e5f6a7b8c9d2",
"type": "CUSTOM",
"baseType": "PROCESS_QA",
"isCustom": true,
"label": "Odbiory",
"code": "ODB",
"color": "#1E88E5",
"textColor": "#FFFFFF",
"icon": null,
"isAvailableForInspection": true,
"workflowId": "6750c3a5c3d4e5f6a7b8c9f1"
}
]