BOOK-465 update task template with ifExpired helper for deadline