Forums

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

Get all issues of a user of one particular project

akukkuje July 26, 2020

Hi,

 

Is there a way to filter list of issues based the project name and assignee?

https://base/rest/api/3/search?jql=project=projectName&assignee=currentuser()

 

I'm trying to use the above URL but it shows the total=0(event though I have some results to show).

Any hack on this?

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
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.
July 26, 2020

Yes, most of us would do what you have written there when searching for "project X issues assigned to me" over REST

You seem to be doing exactly the right thing.  Could you tell us what that returns that is wrong?

akukkuje July 26, 2020

Hi Nic,

Thanks for your comment. The above API returns total=0(even though I have some results to show). But if I just pass either one of the params, it shows the partial result.  

 

Do we have any specific API structure to pass both the project name & assignee to extract the required result?

Nic Brough -Adaptavist-
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.
July 27, 2020

Ah, I am sorry, I should have remembered this sooner.  & is a delimiter in urls, not a jql operand.

Jira is ignoring the bit after the & because it's indicating the end of the JQL!  Try

project=projectName+and+assignee=currentUser()

akukkuje July 27, 2020

Nic, thank you so much.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events