This sounds like two separate issues. You might have had a partial obstruction but the pain under your rib sounds as if it came from your workout. Green output is bile which is normal to see; especially if you haven't eaten.
dx proctitis in 1987
dx UC in 1991, was stable until 1998
1998 started prednisone, asacol, pentasa, nortriptylene, ativan, 6MP, rowasa enemas and suppositories, hydrocortisone enemas, tried the SCD diet, being a vegetarian, omega 3s, flax, pranic healing, yoga, acupuncture, probiotics
2000 lost all my B-12 stores and became anemic
2001 opted for j-pouch surgery- now living life med-free