Sulfasalazine was being tested(I believe in Sweden?) for rheumatoid arthritis when it was noticed that ulcerative colitis patients were benefiting from it. Just from memory, I will let you do your own research
The patenting of mesalimine(which is one of the chemicals sulfasalazine breaks down into) delivery systems is a interesting angle for raging against drug companies...and high prices.