We have studied Josephson junctions with barriers prepared from the Heusler compound Cu2MnAl. In the as-prepared state the Cu2MnAl layers are non ferromagnetic and the critical Josephson current density jc decreases exponentially with the thickness of the Heusler layers dF. On annealing the junctions at 240\degree C the Heusler layers develop ferromagnetic order and we observe a dependence jc(dF) with jc strongly enhanced and weakly thickness dependent in the thickness range 7.0 nm < dF < 10.6 nm. We attribute this feature to a triplet component in the superconducting pairing function generated by the specific magnetization profile inside thin Cu2MnAl layers.