function onEdit(e) {
var sheet = e.source.getActiveSheet();
var editedCell = e.range;
if (editedCell.getColumn() == 2) {
var value = editedCell.getValue();
if (value == "Готово") {
sheet.hideRows(editedCell.getRow());
}
}
}