Sounds like some sciatic neural tension (basically some increased tension in the sciatic nerve). When doing the kind of aggravating things you are describing, you will put more tension on the sciatic nerve (e.g. most tension when sitting slumped over, with neck and trunk bent forwards, then lifting the affected leg (or both) straight up with toes pointing towards ceiling). If you've had discal problems in the past around this area where the sciatic nerve exits the spinal cord, it's likely that could have caused it. You can do mobilising techniques to stretch out the nerve and ease the tension...
Depending on people's symptoms I teach them in different ways. If you have no pain whatsoever now (and depending on whether you had any leg pain previously), I would suggest either way you start off SLOW AND GENTLE. Sitting on a chair with your toes pointing down towards floor on one leg and then lifting your leg straight up (as if straightening your knee while lifting it off the floor)...stop when you feel the tension increasing in the back of the leg / area you describe and gently pulse at that point for about 10-15 reps (very slow and gentle..and would alter this depending on symptoms i.e. do it only 5-6x if this aggravates it a lot and unable to tolerate).
If that doesn't feel like a stretch on it at all then I would progress to doing it with toes pointing up towards ceiling...if that didn't feel enough of a stretch then move on to neck/trunk slumped slightly forwards.
Hope this helps.