Work-Related Move - Partial Exclusion of Gain

hi, I am wondering a little more on what is required to take a partial exclusion of gain from a home sale for a work related move. What qualifies as a work related move? What documentation is needed? (Context: This would be capital gains due to selling a 2nd home within a 2 year period so unable to take the gain exclusion this time around.)