N.Y. Labor Law § 807
1. No court nor any judge or judges thereof shall have jurisdiction to issue any restraining order or a temporary or permanent injunction in any case involving or growing out of a labor dispute, as hereinafter defined, except after a hearing, and except after findings of all the following facts by the court or judge or judges thereof to be filed in the record of the case:
(f) That no item of relief granted prohibits directly or indirectly any person or persons from doing, whether singly or in concert, any of the following acts:
2. Such hearings shall be held only after a verified complaint specifying in detail the time, place and the nature of the acts complained of and the names of the persons alleged to have committed the same or participated therein have been served and after due and personal notice, in such manner as the court shall direct, has been given to all known persons against whom relief is sought and also to the public officers charged with the duty to protect the complainant's property. The hearing shall consist of the taking of testimony in open court with opportunity for cross-examination and testimony in opposition thereto, if offered, and no affidavits shall be received in support of any of the allegations of the complaint. Provided, however, that a court or a judge thereof may issue a restraining order without requiring a verified bill of particulars and only upon such notice as to the court or judge appears adequate to afford an opportunity to those who are to be affected by such restraining order to appear in opposition to the application therefor, if each of the following conditions is met:
(a) There is a labor dispute which directly and immediately involves: