Spectroscopy of forbidden transitions in ions of astrophysical interest