There are now variables in the side bar so that you can add the line item ID to labels.
First thing to know, they don't show up there in the side bar until you click in side the label section of the page.
Second, be sure to combine group number and line number to get the whole line ID number:
like this: {group_num}{line_num}