I'm the only woman on my department's team of 6 software engineers. We just had a new manager start and he's assigning me Jira tasks like "organize a teambuilding activity" or "see about getting someone else a new keyboard". I've asked him about why I'm assigned these and he says we can discuss it when my Jira queue is empty (which will probably never happen). The only engineering stuff I'm able to do is old projects that I was already working on when he started, but even for that he's been trying to get my other coworkers to do them instead and he'll assign me a pair programming task with one of them for something I would have done on my own before - none of them pair program with each other. I believe he's treating me this way because I'm a woman. What should I do here?
Your next steps may be dictated by some of your answers to the questions in the comments, but for now: gather evidence. If this is eventually brought to a higher-up or HR, you don't want it to be just your word against his. Record the tasks you are being given, and try to get proof that no one else on your team is being given tasks like these. Get it in writing that he is refusing to discuss the reasoning behind giving you these tasks and that he is passing off your projects.
Consider the following:
Consider the possibility (though I do not think this likely from what you have said) that there is nothing sinister going on here... perhaps your manager sees you on the fast track to a promotion and wants to get you ready for the next step in your career. Buying keyboards? You'll have to do that when you're a manager! Organising team events? That's thinking wider than your own individual contribution! Pair programming? An opportunity for you to mentor those less capable! And the difficulty of getting a meeting with him? He's just busy! On the face of it, this sounds doubtful... but allow the possibility that things are not as they seem. Sometimes there is more going on.
Keep records. Lists of work tickets you've been given, emails from him refusing your request to meet, etc. It might help to demonstrate patterns and if worse comes to worst, provide evidence. Particularly record anything that affects only you. Is everyone being asked to do more pair-programming, or only you?
If your company has an HR department, discuss your concerns with them immediately. I suggest not raising it as a formal grievance yet, but they should be aware of your concerns as soon as possible, and this may help forestall any future remarks about "why didn't you say anything?".
Try again to discuss this with your manager directly. To avoid sounding like you are demanding a confrontation, it may be helpful to propose this as a regular 1:1 catch-up (which a good manager should want to do with their staff anyway), perhaps every two weeks or on some similar basis. In such a 1:1, "how do you see my role fitting into the team, and how are you deciding to balance my workload?" are perfectly reasonable questions for any employee to ask, and to which you should be able to expect a reasonable answer - and give your own input.
Try to phrase your questions in non-accusatory terms: "please can you explain your recent push for me to be involved with more pair programming?" rather than "why don't you trust me to write code alone?". Drop reminders into the conversation about the good work and competencies you have done in the past.
If your manager still says he will talk to you only when your Jira queue is empty (which sounds absurd - when is anyone's work queue empty? - but perhaps your company works in a way that that does happen), empty your work queue. Get work done if possible, or assign the tickets to others with requests for more information, and with your newly-empty queue, ask to talk with your manager again.
If your manager agrees only reluctantly to meet with you, or you think he may become defensive or confrontational in the meeting, consider asking a trusted colleague or other manager to join the meeting as an observer. Note that this immediately escalates the meeting with your boss beyond a "normal" 1:1 meeting, so it is a judgement call as to whether or not this would help.
If your manager still refuses either a regular or one-off meeting, or his answers support your idea that he is discriminating against you, that is the point where you should formally escalate to HR if you have them, or your boss's boss if not. Request a meeting in writing (i.e. by email), explaining that you think there is a possibility of discrimination and you would like to discuss your concerns with them - don't even mention in the meeting request that you may be the victim, or your boss the perpetrator. In that meeting, take your written notes and evidence (for your own reference if nothing else) and describe the situation as calmly and clearly as possible. Explain that your goal is to be treated fairly and with respect, and to be able to continue doing your job to the best of your ability..
If escalating does not resolve the problem - or isn't an option, perhaps if there is no HR, or senior boss to escalate to - it's probably time for another question, as the answers will depend on what has happened since, your unique circumstances, your location and local laws, etc. It may be necessary to take legal recourse, or to move to another team, or even to move to another company. None of these would be good outcomes, of course. You have a right to be treated fairly and without discrimination. Sometimes those rights are improperly withheld, and sometimes there isn't much that can be done about it if the person discriminating is in a position of power. But don't worry yet - it might not come to this.
Just tell your boss you will see about getting someone a new keyboard when your Jira queue is empty.
On a more serious note, does your company have a administrative/support department? Are you the most junior member in the company (besides the manager)?
If you are the most junior person and there isn't any dedicated admin/support staff, he could just be giving it to you because there is literally no one else to do it.
****************************** edit **********************************
@BSMP Not even sure what that even means...
@Ester Obviously you wouldn't say that to your boss, it was supposed to be humorous. If getting a keyboard was the Jira ticket (I doubt it is), then the user is literally complaining about doing their job. I don't see anything hostile about my above answer.