Skipper Peter Hartley's goal was enough for Jamshedpur to pick up their first win of the 2022-23 Indian Super League season.