diff --git a/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsScenarioParser.java b/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsScenarioParser.java index 5c3a1e164e..792d124af9 100644 --- a/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsScenarioParser.java +++ b/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsScenarioParser.java @@ -89,6 +89,7 @@ public class MsScenarioParser extends MsAbstractParser { item.setEnvironmentType(EnvironmentType.JSON.name()); item.setEnvironmentJson(null); item.setEnvironmentGroupId(null); + scenarioDefinition.put("projectId", this.projectId); item.setScenarioDefinition(JSONObject.toJSONString(scenarioDefinition)); } }