Am running this JQL
project = ABC AND issuetype in (Parent, subtask) AND issuefunction in hasSubtasks() OR issueFunction in subtasksOf("project in ('ABC')") AND "User Picker" = user1 ORDER BY issuekey ASC.
and i get parent and subtask which has a user picker value as user1 and also it returns issues with user2 user3 and user4. how can i make this effective to pull only issues related to user1?
User picker custom filed is only on subtask screen but not in the parent, by doing that JQl i get subtask and its associating parent.
any thoughts?
Thank you
Hello,
What do you mean by issues with user2, user3 etc. You mean that user2 is in the User Picker field for the issue?
When issue is created user must be selected from that picker and depending on other options available in issue user changes. Now i want to pull parent and subtasks based on user selection from picker user1 or user 2 or user3. So yea user2 is in the picker and user 2 and user 1 will not be on same issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try like this
project = ABC AND issuetype in (Parent, subtask) AND (issuefunction in hasSubtasks() OR issueFunction in subtasksOf("project in ('ABC')")) AND "User Picker" = user1 ORDER BY issuekey ASC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The JQL by Alexey is the one you need.
It was a matter of parenthesis; all you put after an OR do not take into account previous clauses, so it usually requires to carefully enclose something between parenthesis.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It would be something like this
project = ABC AND issuetype in (Parent, subtask) AND (issuefunction in parentsOf("\"User Picker\" = user1") OR (issueFunction in subtasksOf("project in ('ABC')") AND "User Picker" = user1)) ORDER BY issuekey ASC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
can you help to find the issues of current month based on shift wise(6am to 3pm).???
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you try with this JQL:
project = ABC AND issueFunction in parentsOf("project=ABC AND \"User Picker\" = user1") and AND "User Picker" = user1 ORDER BY issuekey ASC.
Here you will get parent issues which has subtasks with user1 "user picker" value including the subtasks.
if you want to query for only parent issues, then try:
project = ABC AND issueFunction in parentsOf("project=ABC AND \"User Picker\" = user1") ORDER BY issuekey ASC.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.