We propose a method for joint multichannel speech dereverberation with two spatial-aware multichannel tasks: direction-of-arrival (DOA) estimation and speech separation. The proposed method addresses tasks as a sequence to sequence mapping problem, which is general enough for a variety of front-end speech processing tasks. The proposed method is inspired by the excellent sequence modeling capability of bi-directional encoder representation from transformers (BERT). Instead of utilizing explicit representations from pretraining in a self-supervised way, we utilizes transformer encoded hidden representations in a supervised way. Both multichannel spectral magnitude and spectral phase information are encoded. Experimental result demonstrates the effectiveness of the proposed method.