Consider a hyperelliptic integral I=∫P/(QS)dx, P,Q,S∈K[x], with [K:Q]<∞. When S is of degree ≤4, such integral can be calculated in terms of elementary functions and elliptic integrals of three kinds F,E,Π. When S is of higher degree, it is typically non elementary, but it is sometimes possible to obtain an expression of I using also elliptic integrals when the Jacobian of y2=S(x) has elliptic factors. We present an algorithm searching for elliptic factors and a modular criterion for their existence. Then, we present an algorithm for computing an expression of I using elliptic integrals, which always succeed in the completely decomposable Jacobian case.