That sounds like a mild impaction. They tend to lose their appetite when that happens. I would try longer baths and slowly raise the
bath water temperature. You don't want to scald your dragon, but the hotter the water, the more likely he is to poop. You can also try oral fluids, and maybe a little bit of canned pumkin, squash or olive oil to try to get things moving. With my dragon, he had a long brumation and didn't eat much for almost a year, getting things moving again on their own took a while, so I have tried basically everything in the book. I also noticed that adding repti-safe water conditioner to the
bath water made him much more likely to poop in the
bath. I have no idea why, but it did, so that might be worth a try as well.
Good luck!