Skip to content

Resolve "Quando si aggiunge un messaggio a una pratica si pubblica sul topic messages"

Closes #1605 (closed)

Nota interna

Invio nota interna

{
	"app_id": "symfony-core:2.14.2",
	"app_version": "2.14.2",
	"attachments": [
		{
			"created_at": "2023-04-07T16:19:55+02:00",
			"description": "Allegato - test_opencontent.pdf",
			"id": "e6570f01-6141-4e3a-92e7-1a1fa22c39de",
			"mime_type": null,
			"name": "6430268bb5534273476234.pdf",
			"original_name": "test_opencontent.pdf",
			"protocol_number": null,
			"protocol_required": true,
			"url": "http://stanzadelcittadino.localtest.me/comune-di-bugliano/api/applications/77e5be6c-fdd9-4ba3-b83f-0d04d840bbb2/messages/77e5be6c-fdd9-4ba3-b83f-0d04d840bbb2/attachments/e6570f01-6141-4e3a-92e7-1a1fa22c39de"
		}
	],
	"author_id": "2c419c9d-2dc4-4f1a-ad33-8f7ad411d897",
	"clicked_at": null,
	"created_at": "2023-04-07T16:19:59+02:00",
	"email": null,
	"event_created_at": "2023-04-07T16:19:59+02:00",
	"event_id": "bdae0496-ff45-4cec-87a0-3d6b6b290c80",
	"event_version": 1,
	"external_id": null,
	"id": "77e5be6c-fdd9-4ba3-b83f-0d04d840bbb2",
	"linked_entity_id": "b3f90f83-3ac8-44c4-b993-9273c5d0514a",
	"message": "<p>Nota privata con allegato</p>",
	"path": "/messages",
	"protocol_number": null,
	"protocol_required": false,
	"protocolled_at": null,
	"read_at": null,
	"sent_at": null,
	"source_type": "http",
	"subject": null,
	"tenant_id": "669f6ae2-a9c1-4240-bd70-90a71bdf3955",
	"timestamp": "2023-04-07T14:19:59.461914216Z",
	"transmission_type": "internal",
	"visibility": "internal",
	"x-forwarded-for": null
}
Messaggi in entrata

Invio messaggio dal cittadino senza allegati

{
	"app_id": "symfony-core:2.14.2",
	"app_version": "2.14.2",
	"attachments": [],
	"author_id": "f5adc021-bcd9-4f91-90ab-bbe336a7eb18",
	"clicked_at": null,
	"created_at": "2023-04-07T16:33:16+02:00",
	"email": null,
	"event_created_at": "2023-04-07T16:33:17+02:00",
	"event_id": "833edcfb-9941-4a5b-8aef-52d7c1f0d593",
	"event_version": 1,
	"external_id": null,
	"id": "4856d9ec-f30d-4458-8f90-5af51354ddb5",
	"linked_entity_id": "b3f90f83-3ac8-44c4-b993-9273c5d0514a",
	"message": "<p>Messaggio del cittadino senza allegati<br /></p>",
	"path": "/messages",
	"protocol_number": null,
	"protocol_required": false,
	"protocolled_at": null,
	"read_at": null,
	"sent_at": null,
	"source_type": "http",
	"subject": null,
	"tenant_id": "669f6ae2-a9c1-4240-bd70-90a71bdf3955",
	"timestamp": "2023-04-07T14:33:17.449962485Z",
	"transmission_type": "inbound",
	"visibility": "applicant",
	"x-forwarded-for": null
}

Invio messaggio dal cittadino con allegati

{
	"app_id": "symfony-core:2.14.2",
	"app_version": "2.14.2",
	"attachments": [
		{
			"created_at": "2023-04-07T16:39:51+02:00",
			"description": "Allegato - testopencontent.pdf",
			"id": "b6ac241c-c390-4a0b-a238-d66591e3913a",
			"mime_type": null,
			"name": "64302b371c4a6987658793.pdf",
			"original_name": "testopencontent.pdf",
			"protocol_number": null,
			"protocol_required": true,
			"url": "http://stanzadelcittadino.localtest.me/comune-di-bugliano/api/applications/1a079c9e-5c09-4050-94a4-7bf0f0bd4ff3/messages/1a079c9e-5c09-4050-94a4-7bf0f0bd4ff3/attachments/b6ac241c-c390-4a0b-a238-d66591e3913a"
		}
	],
	"author_id": "f5adc021-bcd9-4f91-90ab-bbe336a7eb18",
	"clicked_at": null,
	"created_at": "2023-04-07T16:39:55+02:00",
	"email": null,
	"event_created_at": "2023-04-07T16:39:56+02:00",
	"event_id": "cdf257e5-dd0f-4b53-a7ae-7804c26010ae",
	"event_version": 1,
	"external_id": null,
	"id": "1a079c9e-5c09-4050-94a4-7bf0f0bd4ff3",
	"linked_entity_id": "b3f90f83-3ac8-44c4-b993-9273c5d0514a",
	"message": "<p>Risposta integrazione con allegati</p>",
	"path": "/messages",
	"protocol_number": null,
	"protocol_required": false,
	"protocolled_at": null,
	"read_at": null,
	"sent_at": null,
	"source_type": "http",
	"subject": null,
	"tenant_id": "669f6ae2-a9c1-4240-bd70-90a71bdf3955",
	"timestamp": "2023-04-07T14:39:56.475407529Z",
	"transmission_type": "inbound",
	"visibility": "applicant",
	"x-forwarded-for": null
}

Aggiornamento data lettura

{
	"app_id": "symfony-core:2.14.2",
	"app_version": "2.14.2",
	"attachments": [],
	"author_id": "f5adc021-bcd9-4f91-90ab-bbe336a7eb18",
	"clicked_at": null,
	"created_at": "2023-04-07T16:21:16+02:00",
	"email": "operatore.standard@email.com",
	"event_created_at": "2023-04-07T16:33:35+02:00",
	"event_id": "15969896-1796-4a11-81e7-cd7f2b4657de",
	"event_version": 1,
	"external_id": null,
	"id": "1894242b-4ab1-4419-ba41-099950cb3848",
	"linked_entity_id": "b3f90f83-3ac8-44c4-b993-9273c5d0514a",
	"message": "<p>Messaggio del cittadino senza allegati</p>",
	"path": "/messages",
	"protocol_number": null,
	"protocol_required": false,
	"protocolled_at": null,
	"read_at": "2023-04-07T16:33:35+02:00",
	"sent_at": "2023-04-07T16:21:16+02:00",
	"source_type": "http",
	"subject": null,
	"tenant_id": "669f6ae2-a9c1-4240-bd70-90a71bdf3955",
	"timestamp": "2023-04-07T14:33:35.266304732Z",
	"transmission_type": "inbound",
	"visibility": "applicant",
	"x-forwarded-for": null
}

Aggiornamento protocollo via API

{
	"app_id": "symfony-core:2.14.2",
	"app_version": "2.14.2",
	"attachments": [],
	"author_id": "f5adc021-bcd9-4f91-90ab-bbe336a7eb18",
	"clicked_at": null,
	"created_at": "2023-04-07T16:21:16+02:00",
	"email": "operatore.standard@email.com",
	"event_created_at": "2023-04-07T16:34:13+02:00",
	"event_id": "3d60a28e-72e3-476a-90e5-9a605da70ca4",
	"event_version": 1,
	"external_id": null,
	"id": "1894242b-4ab1-4419-ba41-099950cb3848",
	"linked_entity_id": "b3f90f83-3ac8-44c4-b993-9273c5d0514a",
	"message": "<p>Messaggio del cittadino senza allegati</p>",
	"path": "/messages",
	"protocol_number": "PROTOCOL_NR",
	"protocol_required": false,
	"protocolled_at": "2023-04-04T12:06:52+02:00",
	"read_at": "2023-04-07T16:33:35+02:00",
	"sent_at": "2023-04-07T16:33:35+02:00",
	"source_type": "http",
	"subject": null,
	"tenant_id": "669f6ae2-a9c1-4240-bd70-90a71bdf3955",
	"timestamp": "2023-04-07T14:34:13.268069502Z",
	"transmission_type": "inbound",
	"visibility": "applicant",
	"x-forwarded-for": null
}
Messaggi in uscita

Invio messaggio dall'operatore

{
	"app_id": "symfony-core:2.14.2",
	"app_version": "2.14.2",
	"attachments": [
		{
			"created_at": "2023-04-07T16:35:19+02:00",
			"description": "Allegato - testopencontent.pdf",
			"id": "a4fc65e8-052e-450f-bc2b-d5f20ca26ded",
			"mime_type": null,
			"name": "64302a27c482f999442043.pdf",
			"original_name": "testopencontent.pdf",
			"protocol_number": null,
			"protocol_required": true,
			"url": "http://stanzadelcittadino.localtest.me/comune-di-bugliano/api/applications/8e385130-5651-488b-aba6-c39dca9ce63a/messages/8e385130-5651-488b-aba6-c39dca9ce63a/attachments/a4fc65e8-052e-450f-bc2b-d5f20ca26ded"
		}
	],
	"author_id": "2c419c9d-2dc4-4f1a-ad33-8f7ad411d897",
	"clicked_at": null,
	"created_at": "2023-04-07T16:35:23+02:00",
	"email": null,
	"event_created_at": "2023-04-07T16:35:24+02:00",
	"event_id": "0d9d1006-a268-4faf-ade7-116c9d072bfc",
	"event_version": 1,
	"external_id": null,
	"id": "8e385130-5651-488b-aba6-c39dca9ce63a",
	"linked_entity_id": "b3f90f83-3ac8-44c4-b993-9273c5d0514a",
	"message": "<p>Messaggio dell'operatore con allegato</p>",
	"path": "/messages",
	"protocol_number": null,
	"protocol_required": false,
	"protocolled_at": null,
	"read_at": null,
	"sent_at": null,
	"source_type": "http",
	"subject": null,
	"tenant_id": "669f6ae2-a9c1-4240-bd70-90a71bdf3955",
	"timestamp": "2023-04-07T14:35:24.056873829Z",
	"transmission_type": "outbound",
	"visibility": "applicant",
	"x-forwarded-for": null
}

Creazione via API con allegato

{
	"app_id": "symfony-core:2.14.2",
	"app_version": "2.14.2",
	"attachments": [
		{
			"created_at": "2023-04-07T16:41:14+02:00",
			"description": "Allegato - testopencontent.pdf",
			"id": "013b8c1b-f09a-447b-948b-06f5db8633c2",
			"mime_type": null,
			"name": "64302b8a9d19f049629761.pdf",
			"original_name": "testopencontent.pdf",
			"protocol_number": null,
			"protocol_required": true,
			"url": "http://stanzadelcittadino.localtest.me/comune-di-bugliano/api/applications/52cfd056-b8ff-47e9-b377-b30681c88630/messages/52cfd056-b8ff-47e9-b377-b30681c88630/attachments/013b8c1b-f09a-447b-948b-06f5db8633c2"
		}
	],
	"author_id": "2c419c9d-2dc4-4f1a-ad33-8f7ad411d897",
	"clicked_at": "2023-04-07T11:27:22+02:00",
	"created_at": "2023-04-07T16:41:14+02:00",
	"email": "user@example.com",
	"event_created_at": "2023-04-07T16:41:15+02:00",
	"event_id": "2b649a18-451f-4fd2-831b-68fefd7fa205",
	"event_version": 1,
	"external_id": "TEST API",
	"id": "52cfd056-b8ff-47e9-b377-b30681c88630",
	"linked_entity_id": "063959f5-0cbd-4c8d-be16-113601c291bb",
	"message": "Messaggio",
	"path": "/messages",
	"protocol_number": "PROTOCOL NR",
	"protocol_required": true,
	"protocolled_at": "2023-04-07T11:27:22+02:00",
	"read_at": "2023-04-07T11:27:22+02:00",
	"sent_at": "2023-04-07T11:27:22+02:00",
	"source_type": "http",
	"subject": "Oggetto",
	"tenant_id": "669f6ae2-a9c1-4240-bd70-90a71bdf3955",
	"timestamp": "2023-04-07T14:41:15.121430625Z",
	"transmission_type": "outbound",
	"visibility": "applicant",
	"x-forwarded-for": null
}

Aggiornamento data lettura

{
	"app_id": "symfony-core:2.14.2",
	"app_version": "2.14.2",
	"attachments": [
		{
			"created_at": "2023-04-07T16:35:19+02:00",
			"description": "Allegato - testopencontent.pdf",
			"id": "a4fc65e8-052e-450f-bc2b-d5f20ca26ded",
			"mime_type": null,
			"name": "64302a27c482f999442043.pdf",
			"original_name": "testopencontent.pdf",
			"protocol_number": null,
			"protocol_required": true,
			"url": "http://stanzadelcittadino.localtest.me/comune-di-bugliano/api/applications/8e385130-5651-488b-aba6-c39dca9ce63a/messages/8e385130-5651-488b-aba6-c39dca9ce63a/attachments/a4fc65e8-052e-450f-bc2b-d5f20ca26ded"
		}
	],
	"author_id": "2c419c9d-2dc4-4f1a-ad33-8f7ad411d897",
	"clicked_at": null,
	"created_at": "2023-04-07T16:35:23+02:00",
	"email": "emily.lancietti@gmail.com",
	"event_created_at": "2023-04-07T16:35:49+02:00",
	"event_id": "9842952e-8f48-468c-a45d-8e1156b361be",
	"event_version": 1,
	"external_id": null,
	"id": "8e385130-5651-488b-aba6-c39dca9ce63a",
	"linked_entity_id": "b3f90f83-3ac8-44c4-b993-9273c5d0514a",
	"message": "<p>Messaggio dell'operatore con allegato</p>",
	"path": "/messages",
	"protocol_number": null,
	"protocol_required": false,
	"protocolled_at": null,
	"read_at": "2023-04-07T16:35:49+02:00",
	"sent_at": "2023-04-07T16:35:24+02:00",
	"source_type": "http",
	"subject": null,
	"tenant_id": "669f6ae2-a9c1-4240-bd70-90a71bdf3955",
	"timestamp": "2023-04-07T14:35:49.583099980Z",
	"transmission_type": "outbound",
	"visibility": "applicant",
	"x-forwarded-for": null
}

Aggiornamento protocollo via API

{
	"app_id": "symfony-core:2.14.2",
	"app_version": "2.14.2",
	"attachments": [
		{
			"created_at": "2023-04-07T16:35:19+02:00",
			"description": "Allegato - testopencontent.pdf",
			"id": "a4fc65e8-052e-450f-bc2b-d5f20ca26ded",
			"mime_type": null,
			"name": "64302a27c482f999442043.pdf",
			"original_name": "testopencontent.pdf",
			"protocol_number": "PROTOCOL_NR",
			"protocol_required": true,
			"url": "http://stanzadelcittadino.localtest.me/comune-di-bugliano/api/applications/8e385130-5651-488b-aba6-c39dca9ce63a/messages/8e385130-5651-488b-aba6-c39dca9ce63a/attachments/a4fc65e8-052e-450f-bc2b-d5f20ca26ded"
		}
	],
	"author_id": "2c419c9d-2dc4-4f1a-ad33-8f7ad411d897",
	"clicked_at": null,
	"created_at": "2023-04-07T16:35:23+02:00",
	"email": "emily.lancietti@gmail.com",
	"event_created_at": "2023-04-07T16:36:25+02:00",
	"event_id": "dce547a4-da05-413d-bf0b-6e05ffd8f0c0",
	"event_version": 1,
	"external_id": "TEST",
	"id": "8e385130-5651-488b-aba6-c39dca9ce63a",
	"linked_entity_id": "b3f90f83-3ac8-44c4-b993-9273c5d0514a",
	"message": "<p>Messaggio dell'operatore con allegato</p>",
	"path": "/messages",
	"protocol_number": "PROTOCOL_NR",
	"protocol_required": false,
	"protocolled_at": "2023-04-04T12:06:52+02:00",
	"read_at": "2023-04-07T16:35:49+02:00",
	"sent_at": "2023-04-07T16:35:49+02:00",
	"source_type": "http",
	"subject": null,
	"tenant_id": "669f6ae2-a9c1-4240-bd70-90a71bdf3955",
	"timestamp": "2023-04-07T14:36:25.571682946Z",
	"transmission_type": "outbound",
	"visibility": "applicant",
	"x-forwarded-for": null
}
Messaggi di sistema (in uscita)

Generazione messaggio di sistema

{
	"app_id": "symfony-core:2.14.2",
	"app_version": "2.14.2",
	"attachments": [],
	"author_id": "2c419c9d-2dc4-4f1a-ad33-8f7ad411d897",
	"clicked_at": null,
	"created_at": "2023-04-07T16:37:50+02:00",
	"email": null,
	"event_created_at": "2023-04-07T16:37:50+02:00",
	"event_id": "d14874ea-498d-4225-bd94-cd1d8ac22422",
	"event_version": 1,
	"external_id": null,
	"id": "20c7a530-d4ff-4892-8a30-12e9dbd9a751",
	"linked_entity_id": "b3f90f83-3ac8-44c4-b993-9273c5d0514a",
	"message": "Gentile <b>Vittorino Coliandro</b><br/>le comunichiamo che è necessaria un'integrazione ai dati della sua richiesta per il servizio <b>Prenotazione appuntamenti fissi</b>.<br/>[Inserire motivazione]<br/>Entri nella sua stanza del cittadino per effettuare l'integrazione",
	"path": "/messages",
	"protocol_number": null,
	"protocol_required": false,
	"protocolled_at": null,
	"read_at": null,
	"sent_at": null,
	"source_type": "http",
	"subject": "Nuovo messaggio richiesta numero b3f90f83-3ac8-44c4-b993-9273c5d0514a",
	"tenant_id": "669f6ae2-a9c1-4240-bd70-90a71bdf3955",
	"timestamp": "2023-04-07T14:37:50.733369202Z",
	"transmission_type": "outbound",
	"visibility": "applicant",
	"x-forwarded-for": null
}

Aggiornamento data lettura

{
	"app_id": "symfony-core:2.14.2",
	"app_version": "2.14.2",
	"attachments": [],
	"author_id": "2c419c9d-2dc4-4f1a-ad33-8f7ad411d897",
	"clicked_at": null,
	"created_at": "2023-04-07T16:37:50+02:00",
	"email": "emily.lancietti@gmail.com",
	"event_created_at": "2023-04-07T16:38:23+02:00",
	"event_id": "4d306c25-b7ca-4090-bf5e-f14cfae6293f",
	"event_version": 1,
	"external_id": null,
	"id": "20c7a530-d4ff-4892-8a30-12e9dbd9a751",
	"linked_entity_id": "b3f90f83-3ac8-44c4-b993-9273c5d0514a",
	"message": "Gentile <b>Vittorino Coliandro</b><br/>le comunichiamo che è necessaria un'integrazione ai dati della sua richiesta per il servizio <b>Prenotazione appuntamenti fissi</b>.<br/>[Inserire motivazione]<br/>Entri nella sua stanza del cittadino per effettuare l'integrazione",
	"path": "/messages",
	"protocol_number": null,
	"protocol_required": false,
	"protocolled_at": null,
	"read_at": "2023-04-07T16:38:22+02:00",
	"sent_at": "2023-04-07T16:37:50+02:00",
	"source_type": "http",
	"subject": "Nuovo messaggio richiesta numero b3f90f83-3ac8-44c4-b993-9273c5d0514a",
	"tenant_id": "669f6ae2-a9c1-4240-bd70-90a71bdf3955",
	"timestamp": "2023-04-07T14:38:23.141301479Z",
	"transmission_type": "outbound",
	"visibility": "applicant",
	"x-forwarded-for": null
}

Aggiornamento protocollo via API

{
	"app_id": "symfony-core:2.14.2",
	"app_version": "2.14.2",
	"attachments": [],
	"author_id": "2c419c9d-2dc4-4f1a-ad33-8f7ad411d897",
	"clicked_at": null,
	"created_at": "2023-04-07T16:37:50+02:00",
	"email": "emily.lancietti@gmail.com",
	"event_created_at": "2023-04-07T16:38:53+02:00",
	"event_id": "bf43a468-e3f1-4f81-839a-20f50dd4af0c",
	"event_version": 1,
	"external_id": "TEST INTEGRAZIONE",
	"id": "20c7a530-d4ff-4892-8a30-12e9dbd9a751",
	"linked_entity_id": "b3f90f83-3ac8-44c4-b993-9273c5d0514a",
	"message": "Gentile <b>Vittorino Coliandro</b><br/>le comunichiamo che è necessaria un'integrazione ai dati della sua richiesta per il servizio <b>Prenotazione appuntamenti fissi</b>.<br/>[Inserire motivazione]<br/>Entri nella sua stanza del cittadino per effettuare l'integrazione",
	"path": "/messages",
	"protocol_number": "PROTOCOL_NR",
	"protocol_required": false,
	"protocolled_at": "2023-04-04T12:06:52+02:00",
	"read_at": "2023-04-07T16:38:22+02:00",
	"sent_at": "2023-04-07T16:38:23+02:00",
	"source_type": "http",
	"subject": "Nuovo messaggio richiesta numero b3f90f83-3ac8-44c4-b993-9273c5d0514a",
	"tenant_id": "669f6ae2-a9c1-4240-bd70-90a71bdf3955",
	"timestamp": "2023-04-07T14:38:53.436614540Z",
	"transmission_type": "outbound",
	"visibility": "applicant",
	"x-forwarded-for": null
}
Edited by Emily Lancietti

Merge request reports

Loading