The present invention relates to pyrrol-hexahydric hetero-aromatic ring analog derivative, preparation method and its applications in medicine. Specifically, the present invention relates to pyrido six-membered Hetero-aromatic analog derivative new shown in a kind of logical formula (I), preparation method and pharmaceutical compositions as well as therapeutic agent containing the derivative, especially as the purposes of JAK inhibitor and immunosuppressor, each substituent group of formula of (I) is identical as the definition in specification.本發明涉及吡咯并六元雜芳環類衍生物、其製備方法及其在醫藥上的應用。具體而言,本發明涉及一種通式(I)所示的新的吡啶并六元雜芳環類衍生物、其製備方法及含有該衍生物的藥物組合物以及其作爲治療劑,特別是作爲JAK抑制劑和免疫抑制劑的用途,其中通式(I)的各取代基與說明書中的定義相同。