you have to draw a straight line or you need to calculate the jump?

those are two different things, unless you're using linear speed.

If you're using platform behavior, only the platform behavior dev may help, as we don't know the exact math behind it and a real jump calculation may differ from the behavior's jump.

HOWEVER

for a straight line, just use the starting position x1,y1 and the ending position x2,y2:

arctan(y2-y1 / x2-x1) = angle to get from start to end.

for a normal jump (no idea if this matches platform behavior, I'm sure it doesn't if jump hold is there) where Vy is the vertical speed you need to start with, Vx is the horizontal speed you had (and you weren't jumping or falling), a is the downwards acceleration and ?x,?y are the horizontal and vertical distance to the target:

?x=Vx·t

?y=Vy·t + (a/2)·t²

so since you know your horizontal speed, you can figure out how long will it take you to get there using the first equation:

t = ?x/Vx

and now using that time, you figure out how high you need to jump. NOTE: THIS WILL NOT AVOID OBSTACLES

?y - (a/2)·t² = Vy·t

(?y - (a/2)·t²)/t = Vy

plug the value of t obtained earlier....

(?y - (a/2)·(?x/Vx)²)/(?x/Vx) = Vy <-- and that's your initial jump speed. Do take care of the signs, I assumed gravity acceleration as positive and positive velocity pointing up. In construct I think positive velocity points down, so just reverse the speed sign