How do you set a height gain running challenge?

You can set up running challenge that is for distance but is there a way to set up a running challenge that is based upon height gain? I cannot currently find a way to do it.