Forums

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

Query to fetch issues using JAva api

Gaurav Jain June 20, 2019

Thanks for your reply. I changed as per your suggestion. Still I am not getting desired output

 

When I am using below query I am getting output

 

https://gauravj7.atlassian.net/rest/api/2/search?jql=assignee in "Gaurav Jain"

 

{

    "errorMessages": [

        "Field 'assignee' does not exist or this field cannot be viewed by anonymous users."

    ],

    "warningMessages": []

}

 

When I want to see all issues under project then also I am not getting output. Please help on urgent basis

 

https://gauravj7.atlassian.net/rest/api/2/search?jql=project="KPIT"

 

{

    "errorMessages": [

        "The value 'KPIT' does not exist for the field 'project'."

    ],

    "warningMessages": []

}

 

Please help me on urgent basis

1 answer

0 votes
Warren
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.
June 21, 2019

Hi @Gaurav Jain 

Just trying to run these API calls in my browser :

jql=assignee in "Gaurav Jain" gives me a different message, complaining about the use of in. I replaced in with = and I get the same message as you, which I would expect because your name isn't in my instance of Jira. But ... this points to the fact that the name you're using isn't valid for your instance either. 

jql=project="KPIT" - again, if I use this I get the same message as you, but as soon as I replace KPIT with one of my projects, it works, pointing to the fact that KPIT isn't the correct project key for you.

For both of these , what happens if you go to filters in Jira and try to put in either assignee in "Gaurav Jain" or project="KPIT"? If you have the name or project correct, it should work, if not, I expect you to see the same error message.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events