In all judgments against sureties or endorsers on any draft, promissory note, or other instrument in writing, the plaintiff or his attorney shall designate and identify the relation of the parties under the contract on which the judgment is rendered.