diff --git a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java index d70eb0a322..fc0d2f3520 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java @@ -669,6 +669,7 @@ public class ApiAutomationService { element = JSON.parseObject(scenarioWithBLOBs.getScenarioDefinition()); element.put("referenced", "REF"); } + element.put("id", scenarioWithBLOBs.getId()); element.put("num", scenarioWithBLOBs.getNum()); element.put("enable", enable); element.put("environmentEnable", environmentEnable); @@ -697,6 +698,7 @@ public class ApiAutomationService { element = JSON.parseObject(scenarioWithBLOBs.getScenarioDefinition()); element.put("referenced", "REF"); } + element.put("id", scenarioWithBLOBs.getId()); element.put("enable", enable); element.put("environmentEnable", environmentEnable); element.put("num", scenarioWithBLOBs.getNum());