0

I'm trying to get a list of issues assigned to the current logged in user using the JIRA REST API, but I can't find any documentation on how to do that.

What do I need to do in order to get the issues assigned to the current user?

1 Answer 1

3

You can specify the issues you want to receive by using jql. In your case rest/api/2/search?jql=assignee=currentuser() should do the trick.

Here is the relevant part of the documentation of the REST api and here is the description of the used jql-function.

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks! I didn't know about currentuser(), and it's not mentioned in the docs you linked to. I have a follow up question if you know the answer: stackoverflow.com/questions/25210004/…
I added the link to the jql-functions to my answer.
when I use rest/api/2/search?jql=assignee=currentuser(), I am getting the following error: bash: syntax error near unexpected token `(' But when I use rest/api/2/search?jql=assignee=currentuser, I get following error: {"startAt":0,"maxResults":50,"total":0,"issues":[],"warningMessages":["The value 'currentuser' does not exist for the field 'assignee'."]}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.