Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JQL assignee gives all past issues also which aren't currently mapped to me.. how to omit those?

Gaurav
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 24, 2019

JQL Query = project  = "Portal" OR project = "Tasks" AND assignee  = [my user name]

above query gives result where in Assignee currently is other than [my user name]. all issues some time in past were assigned to [my user name] for some time.

how to extract data only for [my user name]

 

3 answers

1 accepted

0 votes
Answer accepted
Mario Carabelli
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 24, 2019

@Sreenivasaraju Paanswer will help you.

The problem with your query is that jql executes and-statements vefore or-statements. This means you query is equal to:

project  = "Portal" OR (project = "Tasks" AND assignee  = [my user name])

It gives you issues which are either in project Portal (and assigned to anyone) or in project task and assigned to you.

What would also work to fix your jql is the use of parenthesis :

(project = "Portal" OR project = "Tasks") AND assignee = [my user name]

@Sreenivasaraju Pjjql is a short version withe the IN operator but means exactly the same.

With kind regards

Mario

Gaurav
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 24, 2019

great  -- that worked -- Many Thanks..

Mario Carabelli
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 25, 2019

My pleasure.

With kind regards

Mario

1 vote
Sreenivasaraju P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 24, 2019

You can correct your query as shown below. Both the queries work. Recommend the second query

  1. project  in  ("Portal" , "Tasks") AND assignee  = [my user name]
  2. project in  ("Portal" , "Tasks") AND assignee = currentUser()
1 vote
Jack Brickey
Community Champion
January 24, 2019

If you want only issues currently assigned to you ...

...AND assignee = currentuser()...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events