Skip to content

Commit

Permalink
server: update release notes for clones
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNPavel committed Jun 3, 2024
1 parent 3af1840 commit dcaf6c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/jira-lifecycle-plugin/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1826,6 +1826,8 @@ refIssueLoop:
// GetIssue is invalid for setting the field ourselves
sprintField := bug.Fields.Unknowns[helpers.SprintField]
delete(bug.Fields.Unknowns, helpers.SprintField)
releaseNoteType := bug.Fields.Unknowns[helpers.ReleaseNoteTypeField]
releaseNoteText := bug.Fields.Unknowns[helpers.ReleaseNoteTextField]
clone, err := jc.CloneIssue(bug)
if err != nil {
log.WithError(err).Debugf("Failed to clone bug %+v", bugs)
Expand Down Expand Up @@ -1867,6 +1869,12 @@ refIssueLoop:
},
},
}
if releaseNoteText != nil {
update.Fields.Unknowns[helpers.ReleaseNoteTextField] = releaseNoteText
}
if releaseNoteType != nil {
update.Fields.Unknowns[helpers.ReleaseNoteTypeField] = releaseNoteType
}
sprintID, err := helpers.GetActiveSprintID(sprintField)
if err != nil {
response += fmt.Sprintf(`
Expand Down

0 comments on commit dcaf6c6

Please sign in to comment.