The past tense of go to the trouble of is went to the trouble of.
The third-person singular simple present indicative form of go to the trouble of is goes to the trouble of.
The present participle of go to the trouble of is going to the trouble of.
The past participle of go to the trouble of is gone to the trouble of.