earned income from the discount of qualified ESPP and ROTH contribution

I waited over 2hrs from IRS help and got nowhere but a disconnected line.

From what I understand from an earlier discussion below, the discount from a qualified dispostion of qualified ESPP counts as earned income that counts as "compensation" towards a ROTH contribution. I.e. is

the following still true? 

https://ttlc.intuit.com/community/taxes/discussion/is-income-from-my-espp-stock-sale-considered-earn...