in js/work-items-control/prohibit-edititng-work-items-far-in-past.js [11:18]
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 - WEEK_IN_MS,
'Editing work items to be earlier than a week ago is not allowed!');
});
},