I do have lil cysts on one of my overies so that actually could be
It could be lots of things, when does it happen? specific times of the month, or it just came on suddenly for a short time? If it shoots all the way up your side, it could be an infection, like a kidney infection. Are you having any other symptoms, temperature? pain with urination? Sometimes ovarian cysts can also cause sharp pain. But I haven't heard of pain shooting up to the breast from them though.
It could be your gullblatter , I would go to a doctor just to make sure it's nothing serious