How to get specific assignee of a story, subtask with a specific summary in JIRA? - jql

I am using JIRA version v8.5.9, where I am running the following query in its search option.
issuetype = "Sub task" AND assigned == 'xyz' and summary = '16.4'
Where xyz is a user. Basically what I am trying to achieve is: I am looking for all stories, sub-tasks whose assignee is xyz user along with its summary should contain 16.4 in it. When I am running this query it's not giving me any results. Any help is greatly appreciated.

With your shown attempts, could you please try following query.
(issuetype = "Story" OR issuetype = "Sub task") AND assignee = 'xyz' AND summary ~ "16.4"
Explanation:
First thing first you need to use OR condition for having stories and sub tasks both to be catch here.
Then you need to use ~ operator to search for string, since you mentioned you could have other than 16.4 string then we can't use = here.

Try using the contains ~ operator:
issuetype = "Sub task" AND assigned == 'xyz' and summary ~ '*16.4*'

Related

How to get all stories and sub tasks from a specific user along with how much time spent on each item in JIRA

I am trying to get all stories and sub-tasks for a specific user along with how much time spent on each item from starting of this year.
I am using JIRA version v8.5.9, where I have tried running the following query but it is not giving me the expected result, any help is appreciated.
(issuetype = "Sub task") AND time spent > 0 and assignee = test123
With your shown samples, attempts please try following JQL query.
(issuetype = "Sub task" OR issuetype = Story )AND timespent > 0 AND assignee = test123 AND createdDate >= startOfYear()
Explanation:
Look for Sub task OR story first.
Then make sure its timespent(looks like OP has a typo in OP's efforts) is more than 0 here.
Then checking assignee should be test123 user.
Then putting AND condition to make sure all items are coming from starting of this current year.

I have one custom field in rally, Field name: CSST Test Set Category

Field name: CSST Test Set Category. The custom field under Test sets, I want query using that custom field to generate custom reports. query: ((CSST Test Set Category).Name = " Prod Cert "), when I try to save the query getting "invalid expression starting at "CSST"". Can any one please help me
Perhaps the query should be:
(c_CSSTTestSetCategory = "Prod Cert")

Filter records based on groups [Odoo]

I am trying to filter the records based on their group id. I have written a domain filter in menu action like this
[('pending_approver','in',[g.id for g in user.groups_id])]
pending_approver is a Many2one field with res.groups
Have a look on this for more clarification.
def _default_approver(self):
obj = self.env['approval_heirarchy.approval_rules'].search([('id', '=', 1)], limit=1)
if obj.x_approver_ids:
val = obj.x_approver_ids[0].x_user_ids
return obj.x_approver_ids[0].x_user_ids.id
pending_approver = fields.Many2one('res.groups', string="Pending Approver", readonly=True,default=_default_approver)
Whenever run the application prompt an Odoo Client Error:
Uncaught Error: Expected "]", got "(name)"
I've searched a lot but didn't find any solution.
Any help will be a great regard for me. Thanks in Advance!
if self.user_has_groups('sales_team.group_sale_manager') is True:
code part...
this code may help you.....any queries please free to ask

Rally Query in Custom App not returning expected results

I am testing a rally query within the settings of a custom app and am unable to get the correct results returned.
I want to return defects with an open task that has specific text in the name only while any other tasks are complete and do not have the same specific text in the name.
The query I am using is:
(((((Tasks.Name !contains "someText") AND (Tasks.State = "Completed")) AND (Tasks.Name contains "someText")) AND (Tasks.State != "Completed"))
I have 1 test defect with 2 tasks for testing:
task 1 does not have the specific text and is complete and the other has the specified text and is not complete.
No information is returned.
If I split the query into separate parts and update the tasks to match
(((Tasks.Name !contains "someText") AND (Tasks.State = "Completed"))
The correct information is returned
as does
(((Tasks.Name contains "someText")) AND (Tasks.State != "Completed"))
How can I put both together?
I have searched the documentation for "nested" queries but I can't find anything applicable, perhaps this can't be done? Can anyone help with the query syntax or help me understand where I am going wrong?
Many thanks in advance

JIRA query for issues without parents

I'm using a JIRA instance for which I'm not the admin, so I don't have the option of installing plugins. I'm trying to filter to find issues in a particular project that don't have a parent (aren't sub-tasks of something else), but I can't figure out a good way to do so. The following query returns issues with a particular parent with the ID 84, but I'm not sure how to tweak it to get issues with no parent:
project = FOO AND Status = Open AND parent = FOO-84
It doesn't seem to be possible since doing "parent = null" or "" will tell you that the parent field doesn't support empty value search.
However, to get a list of top level issues you can use the issueType field this way:
project = FOO AND Status = Open AND issuetype in standardIssueTypes()
To get a list of subtasks:
project = FOO AND Status = Open AND issuetype in subTaskIssueTypes()
For anyone searching, this is my JQL:
issuetype = Task AND issueLinkType != "Child to" ORDER BY created DESC
The above didn't work for me. Here is another way to get un-parented tasks:
issuetype in StandardIssueTypes() AND parent is null
Here is how to get un-parented subtasks.
issuetype in subTaskIssueTypes() AND parent is null
You can filter our 'Done' statuses by adding the below to any JQL
AND status NOT IN (Done)
For anyone who is still looking for a working JQL that only displays issues that have no parent yet:
issuetype in StandardIssueTypes() AND issueLinkType != parent ORDER BY created DESC
You can of course replace in StandardIssueTypes() by a specific issue type like a task. The query will then be:
issuetype = Task AND issueLinkType != parent ORDER BY created DESC
If you don't want to order, please remove:
'ORDER BY created DESC'