How do you link the History Comments to your data card?

When changing states, we are asked to enter in comments.  I'd like to like what is typed into a data card variable.

SolidworksSolidworks Pdm enterprise Pdm