Where jurisdiction of any matter is by law vested in a court of common pleas or in the Philadelphia Municipal Court, all applications for relief or other documents relating to the matter shall be filed in or transferred to the office of the clerk of the court of common pleas and handled by the appropriate office specified by or pursuant to this chapter.