It can be done by following the next steps:
Open in-game chat
Choose the channel where you would like to link your item(/i for raid, /p for group, /g - guild and etc.)
Open your bags
Find the piece of loot which you want to be linked
While the chat is still open, hold the Shift key and click the left button of your mouse