tenesmus

A feeling of incomplete emptying of the bowel or bladder, often accompanied by a persistent urge to defecate or urinate.