I’m having trouble with JIRA v8.5.9. I’m trying to find sub-tasks for stories assigned to specific users. My search query looks like this:
issuetype = "bug" AND assigned == 'user123'
I’ve tried this for different users, but I’m not getting any results. I’m pretty sure there should be matching issues. Am I doing something wrong with the query? Or is there a better way to search for sub-tasks of stories assigned to particular people?
I’ve checked the JIRA documentation, but I’m still stumped. Any tips or suggestions would be really helpful. Thanks!
I’ve dealt with similar JIRA search issues before. One thing to consider is that sub-tasks might not have the ‘bug’ issue type. Try broadening your search:
issuetype = Sub-task AND parent in (assignee = user123)
This should catch all sub-tasks where the parent issue is assigned to the specified user, regardless of the parent’s type. Also, make sure you’re using the correct username format - sometimes it’s ‘firstname.lastname’ or an email address.
If you’re still not getting results, it might be a permissions issue. Check if you have the necessary project access to view these tasks. Sometimes, certain projects or issue types are restricted.
Lastly, try using the advanced search option in JIRA’s UI to build your query. It can help you understand the correct syntax and available fields.
hey tom, i’ve seen this happen. try replacing ‘assigned’ with ‘assignee’ and double-check your quotes, like: issuetype = ‘bug’ AND assignee = ‘user123’. also, confirm the user has bugs assigned. hope that helps!
I’ve encountered similar issues with JIRA searches before. Your query looks close, but there are a couple of things to consider. First, make sure you’re using the correct operator for assigned; it should be ‘=’ instead of ‘==’. Also, for user searches, it’s often better to use the user’s username rather than their display name.
Try modifying your query to:
issuetype = 'Sub-task' AND parent in (issueType = Story AND assignee = user123)
This should find all sub-tasks where the parent story is assigned to the specified user. If you’re still not getting results, double-check that the user actually has assigned stories with sub-tasks and verify your project permissions to ensure you can see all relevant issues.
Hope this helps you narrow down the problem!