Donated (not sold) ESPP, How do I report amount taxed for Ordinary Income?

I donated a significant amount of qualified ESPP shares from a former employer to charity this year.  I know that I can deduct FMV, but need to pay income on the discount I received at purchase.  I'm assuming I will not receive a W-2 with this income from my former employer.  I've seen conflicting information on how best to do this in TurboTax.

 

Since I donated (not sold) it, I did not receive a 1099-B, so there is no transaction that might get me something on Schedule 1, line 8k.  I've seen advice in turbotax to get it both to Schedule 1, line 8z and to 1040, line 1h.  What is the correct thing to do here?