Special forms for NYC tax

Hi There, 

I currently reside in California and have received my W-2. Previously, I worked in New York City, and I am facing an issue where NYC is still taxing me for my full income instead of vested stocks. Is there a specific form I can file that reports only the transacted amount from the stocks, rather than my full year's income in California? Thank you.

 

-Annie