There's a difference between dealing with a little boredom or muckwork in a project (there's always some of that) and the sort of relentless, day-long, can't do
anything procrastination the OP describes.
Sure, we all have those little jobs we don't want to do... But if you find you just can't get anything done for days at a time, it means your subconscious is trying to tell you something. You'd be wise to try and figure out what, and take steps to address the underlying problem.