in js/work-items-control/prohibit-edititng-work-items-in-future.js [9:16]
action: function(ctx) {
ctx.issue.editedWorkItems.forEach(function(item) {
var itemDate = new Date(item.date).setUTCHours(0, 0, 0, 0);
var today = new Date().setUTCHours(0, 0, 0, 0);
workflow.check(itemDate <= today,
'Editing work items to be in future is not allowed!');
});
},