At what airport did this occur? And in what part of the airport? At the check-in desk outside security? At a service counter inside the terminal? The gate?
Using the copa app to get a mobile boarding pass might have reduced the amount of interaction, although it appears you checked bags.
This seems unclear to me: did they rebook you on a later flight in Y after your nap, and you asked for an even later flight in J?