From ba8e4d5002aba296cc1cc24deb1458717fde00f0 Mon Sep 17 00:00:00 2001 From: Jake Ferrero Date: Thu, 2 May 2024 11:54:44 -0400 Subject: [PATCH] INT-10948 Add better logging around custom fields --- src/steps/issues.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/steps/issues.ts b/src/steps/issues.ts index 930c7be..4441ffe 100644 --- a/src/steps/issues.ts +++ b/src/steps/issues.ts @@ -70,7 +70,12 @@ export async function fetchIssues({ const fieldsById = await fetchJiraFields(apiClient); logger.info( - { customFields: config.customFields, allfields: Object.keys(fieldsById) }, + { + customFields: config.customFields, + allFieldIdsAndNames: Object.values(fieldsById).map( + (field) => `${field.id}: ${field.name ?? 'undefined field name'}`, + ), + }, 'Custom fields to ingest.', );