coreos / issue-sync

A tool for synchronizing issue tracking between GitHub and JIRA
Apache License 2.0
124 stars 34 forks source link

Update JIRA issues from matching GitHub issues #4

Closed MorganEPatch closed 7 years ago

MorganEPatch commented 7 years ago

This PR builds on #2, and is thus blocked on it.

This PR adds the updateIssue() function, which updates a given JIRA issue from a given GitHub issue's title and description and the project passed in the config. It also sets the custom fields forthe GitHub labels and the time the tool ran. It only updates the fields which have been changed, or returns without doing anything if none of them have changed.

The function does not update the Reporter, Assignees, Issue Type, or Priority. These may be set in a future change. This function also does not update the issue status; this requires walking through the workflow using transitions, and is a much later planned feature.