Hello.Initially pain in the groin and knee pain
are different pathologies.
Swelling and lump under knee a possible diagnosis is Inflammation of Bursa.
Trauma and long periods of kneeling are the most frequent causes.
Another possible diagnosis is inflammation of tendon which can be caused by physical overexertion.Go to your doctor to confirm or exclude diagnosis and establish right treatment.
I wish you good health.
(In case the answer would have been useful please indicate this)