Any mission, including farm ones. Make sure you have F1-1 maxed and, later, F2-1. Other missions also count and you should be allocating staff to them too, but F1-1 and F2-1 are priority.
For me, it bugged out. Even though i have all farm mission running, it doesn't count toward the mission counter to unlock relic. Im stuck with no relic unlocked now