Adjust id constraints for tasks