[COOK-2872] support for firstaction/lastaction