Cal. Civ. Proc. Code § 491.410
(a) If the defendant is a party to a pending action or special proceeding, the plaintiff may obtain a lien under this article, to the extent required to secure the amount to be secured by the attachment, on both of the following:
(b) To obtain a lien under this article, the plaintiff shall file all of the following in the other pending action or special proceeding: