From 4297178da7d04e367570f5dbc4535f39482feaa9 Mon Sep 17 00:00:00 2001 From: bcdasilv Date: Wed, 1 Nov 2023 10:49:19 -0700 Subject: [PATCH] For work item type, using enum id rather than enum name --- .../src/com/teamscale/polarion/plugin/utils/CastUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/utils/CastUtils.java b/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/utils/CastUtils.java index 65e93bb..7d955a5 100644 --- a/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/utils/CastUtils.java +++ b/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/utils/CastUtils.java @@ -102,7 +102,7 @@ public static WorkItemForJson castWorkItem( workItemForJson.setTitle(workItem.getTitle()); } if (workItem.getType() != null) { - workItemForJson.setType(workItem.getType().getName()); + workItemForJson.setType(workItem.getType().getId()); } if (workItem.getUpdated() != null) { workItemForJson.setUpdated(workItem.getUpdated().toInstant().toString());