diff --git a/case.go b/case.go index 324f85e..1eb7f94 100644 --- a/case.go +++ b/case.go @@ -23,6 +23,7 @@ type Case struct { UpdatedBy int `json:"updated_by"` UdpatedOn int `json:"updated_on"` State int `json:"custom_state,omitempty"` + CustomTestRunConfig []int `json:"custom_testrun_configs"` } // CustomStep represents the custom steps @@ -49,26 +50,27 @@ type RequestFilterForCases struct { // SendableCase represents a Test Case // that can be created or updated via the api type SendableCase struct { - Title string `json:"title"` - TypeID int `json:"type_id,omitempty"` - PriorityID int `json:"priority_id,omitempty"` - Estimate string `json:"estimate,omitempty"` - MilestoneID int `json:"milestone_id,omitempty"` - Refs string `json:"refs,omitempty"` - Checkbox bool `json:"custom_checkbox,omitempty"` - Date string `json:"custom_date,omitempty"` - State int `json:"custom_state,omitempty"` - Dropdown int `json:"custom_dropdown,omitempty"` - Integer int `json:"custom_integer,omitempty"` - Milestone int `json:"custom_milestone,omitempty"` - MultiSelect []int `json:"custom_multi-select,omitempty"` - Steps []CustomStep `json:"custom_steps,omitempty"` - String string `json:"custom_string,omitempty"` - TemplateId int `json:"template_id,omitempty"` - TestDescription string `json:"custom_test_description,omitempty"` - Text string `json:"custom_text,omitempty"` - URL string `json:"custom_url,omitempty"` - User int `json:"custom_user,omitempty"` + Title string `json:"title"` + TypeID int `json:"type_id,omitempty"` + PriorityID int `json:"priority_id,omitempty"` + Estimate string `json:"estimate,omitempty"` + MilestoneID int `json:"milestone_id,omitempty"` + Refs string `json:"refs,omitempty"` + Checkbox bool `json:"custom_checkbox,omitempty"` + Date string `json:"custom_date,omitempty"` + State int `json:"custom_state,omitempty"` + Dropdown int `json:"custom_dropdown,omitempty"` + Integer int `json:"custom_integer,omitempty"` + Milestone int `json:"custom_milestone,omitempty"` + MultiSelect []int `json:"custom_multi-select,omitempty"` + Steps []CustomStep `json:"custom_steps,omitempty"` + String string `json:"custom_string,omitempty"` + TemplateId int `json:"template_id,omitempty"` + TestDescription string `json:"custom_test_description,omitempty"` + Text string `json:"custom_text,omitempty"` + URL string `json:"custom_url,omitempty"` + User int `json:"custom_user,omitempty"` + CustomTestRunConfig []int `json:"custom_testrun_configs"` } // GetCase returns the existing Test Case caseID