Warm Engine Idle Issue

Is this stumble happening upon accelerating from a dead stop or just while stopped and idling in gear ?
At idle and a little hesitation when accelerating. Once about 1500 RPM or so, it will stop. Drive it around for a few minutes and it behaves for a while, then acts up again once standing at a stop for a few minutes.