To assign an item from an inventory to a task, you need to open a task first and then select the inventory from the Inventories tab. Then switch the view from View assigned items to View all items. Select the items which you want to associate with the task and click Assign button at the top.
For easier understanding see the GIF below.