At my work data of clients, opposing parties, courts, third parties and cases (among which case names) are stored in a spreadsheet. The spreadsheet is the source for contacts in Google Contacts.
For some reason names of cases are used as subject in Gmail. I use(d) Google Apps Script to add case names to Google Contacts
Nice little script example to navigate around and add data to Google Contacts.