Clear due date when changing the status from closed to other status.
ステータスを終了から他のステータスを変更した際に期日をクリアします。
/issues/
Head of all pages
JavaScript
$(function() {
const beforeIssueStatusId = $('#issue_status_id').val();
$('#all_attributes').on('change', '#issue_status_id', function() {
if (beforeIssueStatusId == '5') {
$('#issue_due_date').val('');
}
});
});