diff --git a/src/dispatch/static/dispatch/src/case/TableExportDialog.vue b/src/dispatch/static/dispatch/src/case/TableExportDialog.vue
index 60fb16242f0f..512950ed8de1 100644
--- a/src/dispatch/static/dispatch/src/case/TableExportDialog.vue
+++ b/src/dispatch/static/dispatch/src/case/TableExportDialog.vue
@@ -92,6 +92,11 @@
+
+
+ {{ tag.tag_type.name }}/{{ tag.name }}
+
+
Cancel
@@ -171,6 +176,7 @@ export default {
{ text: "Severity", value: "case_severity.name", sortable: false },
{ text: "Priority", value: "case_priority.name", sortable: false },
{ text: "Assignee", value: "assignee.email", sortable: false },
+ { text: "Tags", value: "tags", sortable: false },
{ text: "Document Weblink", value: "case_document.weblink", sortable: false },
{ text: "Storage Weblink", value: "storage.weblink", sortable: false },
],
@@ -216,6 +222,13 @@ export default {
return CaseApi.getAll(params)
.then((response) => {
let items = response.data.items
+ items = items.map((item) => {
+ if ("tags" in item) {
+ const tags = item["tags"].map((tag) => `${tag.tag_type.name}/${tag.name}`)
+ item["tags"] = tags.join(", ")
+ }
+ return item
+ })
Util.exportCSV(items, "case-details-export.csv")
this.exportLoading = false
this.closeExport()
diff --git a/src/dispatch/static/dispatch/src/incident/TableExportDialog.vue b/src/dispatch/static/dispatch/src/incident/TableExportDialog.vue
index 188bf02d8d71..9d9b7636f424 100644
--- a/src/dispatch/static/dispatch/src/incident/TableExportDialog.vue
+++ b/src/dispatch/static/dispatch/src/incident/TableExportDialog.vue
@@ -93,6 +93,11 @@
+
+
+ {{ tag.tag_type.name }}/{{ tag.name }}
+
+
Cancel
@@ -302,6 +307,13 @@ export default {
value: "closed_at",
sortable: false,
},
+ {
+ text: "Tags",
+ title: "Tags",
+ key: "tags",
+ value: "tags",
+ sortable: false,
+ },
{
text: "Incident Document Weblink",
title: "Incident Document Weblink",
@@ -366,6 +378,13 @@ export default {
return IncidentApi.getAll(params)
.then((response) => {
let items = response.data.items
+ items = items.map((item) => {
+ if ("tags" in item) {
+ const tags = item["tags"].map((tag) => `${tag.tag_type.name}/${tag.name}`)
+ item["tags"] = tags.join(", ")
+ }
+ return item
+ })
const fieldOrder = this.selectedFields.map((field) => field.value)
Util.exportCSVOrdered(items, "incident-details-export.csv", fieldOrder)
this.exportLoading = false