I believe besides pain both medical articles indicate cannabinoids play an anti-inflammatory role and a role in gastric emptying, peptic acid production, enteric motility, acetylcholine release, peristalsis, and cholinergic and non-adrenergic non-cholinergic contractions of smooth muscle of the GI tract. All of these are involved in GI disorders. These effects are mediated at the brain level as well as in the GI tract. Endocannabinoids play a role in the brain and the gut fitting into the 'brain and the gut dysfunction' model.
The second medical article says that the endocannabinoid system may represents a promising new therapeutic target against different GI disorders, inflammatory bowel diseases and functional bowel diseases such as IBS and secretion and motility disorders.
Understanding of the role of cannabinoids in the GI tract is a relatively new research area that is still evolving. Generally speaking it appears that cannabinoids may play a range of roles in GI disorders and their symptoms not just a role in modulation of pain.
-------------------- STABLE: ♂, IBS-D 50+ years - Science of IBS