Net gain or loss from Section 1231 is carried to Form 4797, Sale of Business Property, but it is not included in Form 8582, Passive Activity Computation.
If it needs to be on Form 8582, you will have to override the appropriate entry on Form 8582 to include it.
This information applies to all years of the UltimateTax software.