Skip to content

Commit

Permalink
common/redmine: fix StatusId not being marshalled into the JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
kreatoo committed Sep 3, 2024
1 parent 04953ca commit d86ae72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions common/redmine.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ type Issue struct {
Subject string `json:"subject,omitempty"`
PriorityId int `json:"priority_id,omitempty"`
StatusId int `json:"status_id,omitempty"`
StatusIdString string `json:"status_id,omitempty"`
}

type RedmineIssue struct {
Expand Down Expand Up @@ -106,7 +105,7 @@ func RedmineCreate(service string, subject string, message string) {
projectId = Config.Redmine.Project_id
}

body := RedmineIssue{Issue: Issue{ProjectId: projectId, TrackerId: 7, Description: message, Subject: subject, PriorityId: priorityId, StatusIdString: "open" }}
body := RedmineIssue{Issue: Issue{ProjectId: projectId, TrackerId: 7, Description: message, Subject: subject, PriorityId: priorityId }}

jsonBody, err := json.Marshal(body)

Expand Down

0 comments on commit d86ae72

Please sign in to comment.