Gluons have spin 1 and Gravitons [1] have spin 2. This adds a lot of subtle difference in the calculations. Some are obvious like replacing a 1 with a 2 (or a 1^2 with a 2^2). Some are super tricky:
For example if you have two gluons, you apply the rules of sum of spin and get
1 × 1 = 2 + 1 + 0
(They can be coupled in the same direction and get 2, or the oposite direction and get 0, or something in between and get 1.)
But for gravitons, the rules are
2 × 2 = 4 + 3 + 2 + 1 + 0
(They can be coupled in the same direction and get 4, or the oposite direction and get 0, or something in between and get more cases in between like 2, but also 1 or 3.)
If you want to make give physicist nightmares and make mathematician cry, a tiny part of the details are in https://en.wikipedia.org/wiki/Table_of_Clebsch%E2%80%93Gorda... and https://en.wikipedia.org/wiki/Table_of_Clebsch%E2%80%93Gorda...
In conclusion, I'm not sure how difficult is to do the conversion from gluons to gravitons, but I'd recommend to run away.
[1] Assuming they exist.