You can number lines in Writer, and you can define reference marks, but you cannot refer to a line number (only to page number or reference text, etc.). Therefore I suggest to allow referring to the line number of a text reference.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.