Skip to content

Commit

Permalink
Adding Custom field in Case
Browse files Browse the repository at this point in the history
  • Loading branch information
shrivanithar committed Apr 8, 2022
1 parent 41065f4 commit 3340c6e
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions case.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3340c6e

Please sign in to comment.