Skip to content

Commit

Permalink
Merge pull request #86 from AlexNPavel/cherrypick-release-note
Browse files Browse the repository at this point in the history
server: update release notes for clones
  • Loading branch information
openshift-merge-bot[bot] committed Jun 4, 2024
2 parents 3af1840 + dcaf6c6 commit a84dc9b
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 a84dc9b

Please sign in to comment.