Cramps followed by spotting?

So lately when I get severe cramps I end up spotting like there will be a little bit of blood in my underwear and when I wipe.. has this happened to anyone before?