So yeah everything is in the title, I tried the trigonometric identity with sin(a+bi) and cos(a+bi) and I tried changing sin(z) and cos(z) for their complex expression, but all to no avail
EDIT: Thanks MPW and David! MPW's trick simplified a lot the expression and then I did like David suggested which had become much easier with this new expression
Try writing it in terms of exponentials: $$\frac{e^{iz}+e^{-iz}}{2}+\frac{e^{iz}-e^{-iz}}{2i}=i$$ and so $$i(e^{iz}+e^{-iz})+(e^{iz}-e^{-iz})=-2$$ and multiplying by $e^{iz}$ gives $$(1+i)(e^{iz})^2-(1-i)=-2(e^{iz})\ .$$ Solve a quadratic to find two possible values for $e^{iz}$, then see if you can solve for $z$.