On Official Form 101 (Voluntary Petition) you have to list all bankruptcy cases you've filed in the prior 8 years. This includes both cases that resulted in a discharge and those that were dismissed instead. You'll find all of the information you need here on Form 309A issued by the court after you filed the case or the discharge order, if you received one.
NOTE: If you received a discharge in a Chapter 7 case filed less than 8 years ago, you're not eligible to file Chapter 7 now. The 8 years begins to run when a case is filed. Not when the discharge is entered.
On Official Form 107 (Statement of Financial Affairs) you'll have to provide information about any cases (lawsuits or other legal actions) you were a party to in the year before filing this case. Common examples of legal actions folks may have been a party to before filing a bankruptcy are divorce proceedings and lawsuits filed by creditors.
If you have any documents from the lawsuit, chances are you'll be able to find all the information you'll need on the first page or in the summons and complaint. Specifically, you'll be looking for the case title, case number, date the case was filed, and court name. Once you have the court name, you'll be able to look up its address on the court's website.
If you don't have any of the documents anymore and you didn't have anyone who might still have copies help you with your case, your best bet is to contact the court clerk to ask if they can help you find this information. Many state courts also allow you to search their court records online for your case by last name. Visit your court’s website to learn more.