diff --git a/wrike_monitor.py b/wrike_monitor.py index 260611a..cf5d126 100644 --- a/wrike_monitor.py +++ b/wrike_monitor.py @@ -51,10 +51,12 @@ class Config: # Wrike Space - EDIT FOR DIFFERENT ENVIRONMENTS WRIKE_SPACE_ID = "MQAAAABpz7l_" # Staging WRIKE_SPACE_NAME = "Staging" + DELIVERABLE_ITEM_TYPE_ID = "5793903" # Custom item type "Deliverable" # Production space (uncomment for production) # WRIKE_SPACE_ID = "MQAAAABoHcTY" # LGL Team # WRIKE_SPACE_NAME = "LGL Team" + # DELIVERABLE_ITEM_TYPE_ID = "XXXXXX" # Update with production custom item type ID # Custom field IDs in Wrike CUSTOM_FIELDS = { @@ -502,8 +504,8 @@ class WrikeMonitor: if result and "data" in result and len(result["data"]) > 0: deliverable_id = result["data"][0]["id"] - # Convert to project with dates - project_data = {"project": {}} + # Convert to project with dates and custom item type + project_data = {"project": {"customItemTypeId": Config.DELIVERABLE_ITEM_TYPE_ID}} if brief_date: project_data["project"]["startDate"] = brief_date if live_date: