Oatmeal has both soluble fiber and insoluble fiber both of which help with constipation. It has protein, good carbohydrates, and is low in sugar. Its high dietary fiber and nutritious value makes it particularly effective for constipation.
Sources