Skip to content

Commit 4a25d73

Browse files
authored
fix: case insensitive sub-task comparison (#793)
1 parent 8e5b33a commit 4a25d73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/jira/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func (*Client) getRequestData(req *CreateRequest) *createRequest {
153153
subtaskField = req.SubtaskField
154154
}
155155

156-
if req.projectType == ProjectTypeNextGen || data.Fields.M.IssueType.Name == subtaskField {
156+
if req.projectType == ProjectTypeNextGen || strings.EqualFold(data.Fields.M.IssueType.Name, subtaskField) {
157157
data.Fields.M.Parent = &struct {
158158
Key string `json:"key"`
159159
}{Key: req.ParentIssueKey}

0 commit comments

Comments
 (0)