After univariate and multiple logistic regression analyses, Cytomegalovirus IgM +ve associated BA (OR = 3.38; 95% CI 1.01–11.32; P = 0.04), ln γ-glutamyl transpeptidase (GGT) (OR = 0.41; 95% CI 0.22–0.80; P = 0.009), thickness of the fibrous portal plate (OR = 0.45; 95% CI 0.27–0.76; P = 0.003), liver stiffness measurement (LSM) (OR = 1.19; 95% CI 1.06–1.34; P = 0.002), and multiple episodes of cholangitis (OR = 1.65; 95% CI 1.13–2.41; P = 0.01) were identified as independent risk factors of unsuccessful CJ to construct the nomogram. Here, CD40LG is linked to cholangitis.