SHIMA, Japan—President Barack Obama urged the Democrats campaigning to replace him to focus attacks less on each other than on presumptive Republican nominee Donald Trump as he called for a primary process that smooths over discord between the two sides by the party’s convention in July.

Hillary Clinton and Bernie Sanders need “to try to end this in a way that leaves both sides feeling proud of what they’ve done” and to “stick to the issues,” he said.

...