According to Dr Dixa Bhavsar Savaliya, ayurveda doctor, when you are constipated there are some foods you should avoid as per ayurveda.
Cumin: It increases pitta (improves digestion), is laghu (light in digestion) but also rooksha (drying in nature) and grahi (the one which absorbs) so it's wonderful for appetite, diarhhoea, IBS but not for constipation.
So use jeera for everything but not when you’re constipated.
Curd: Curd is ruchya (improves taste), ushna (hot in nature) and vatajit (balances vata) but it also is guru (heavy to digest) and grahi (absorbent in nature just like cumin) which makes it incompatible for constipation.
Caffeine: We all believe that caffeine can stimulate the muscles in our digestive system & cause easy bowel movement. But caffeine (epecially excessive caffeine) also causes dehydration, which can give the opposite effect and lead to constipation.
Never begin your day with tea/coffee whether you’re constipated or not. Instead begin your day with warm water or a tsp of cow ghee especially if you’re constipated.