Skip to content

Commit

Permalink
fix: Issue with epic field on create (ankitpokhrel#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitpokhrel authored May 6, 2023
1 parent d59cc82 commit 78cdfbd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/jira/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,12 @@ func (cfm *createFieldsMarshaler) MarshalJSON() ([]byte, error) {
}
dm := temp.(map[string]interface{})

if cfm.M.epicField != "" {
dm[cfm.M.epicField] = dm["name"]
if epic, ok := dm["name"]; ok {
if cfm.M.epicField != "" {
dm[cfm.M.epicField] = epic
}
delete(dm, "name")
}
delete(dm, "name")

for key, val := range cfm.M.customFields {
dm[key] = val
Expand Down

0 comments on commit 78cdfbd

Please sign in to comment.