If it is necessary to set forth the judicial proceedings in any case then or formerly pending in any court, civil or military, or any proceedings before a justice of the peace or any other magistrate, only the substance of said proceedings or such part thereof as shall constitute in whole or in part the crime charged need be alleged.
Mass. Gen. Laws ch. 277, § 28