How do I link an edited JPEG as a variant of the original?

So I have a RAW or a RAW+JPEG pair, I right-click, “Edit With…->App->Develop RAW”. I edit it in my photo editor app and export to a JPEG. The JPEG then shows up in Aspect, but not as a related file to the original. I don’t see any way to link it in the UI. Is there some location I need to put it or way I need to name it for it to be linked?

We’ve thought about including a function for manually fixing the missing link a few times in the past, but never reached a conclusion for how to best design the UI for this. Maybe we can implement the simplest possible approach as a start, which would be to require selecting the original and the edited file and then offering a simple menu entry to make the connection. This would then assume that the file with the oldest file modification time is the original and the other is the edited variant (and possible some other clues, such as that RAWs are always originals).

It should be noted that some applications (Photoshop and Affinity Photo included) do support the corresponding standard XMP metadata fields and just work as expected, whereas other applications completely ignore and remove these fields (and often other metadata fields, too), which means that there is no way to reliably associate the edited image with the original anymore.

I’ve opened an internal ticket to keep track of this (#1550).