Hello all,

I am using c#(WPF) application and i am trying to get issues from using rest Api,

the link which am using is below

https://myHostname:myPort/rest/api/2/issue

but am getting error "The remote server returned an error: (404) Not Found."

Am using the correct credentials.

Please help me out.

Thanks in advance!

1 answer

404 indicates that either your host or JIRA record was not found - I can't see where you specified the JIRA Key!?

If you are trying to return or [get an existing Issue|https://docs.atlassian.com/jira/REST/latest/#api/2/issue-getIssue] from JIRA you need to specify the JIRA Key and issue a GET request

https://myHostname:myPort/rest/api/2/issue/{issueIdOrKey}

n.b. make sure you specify all the fields you require etc


For example,

https://myHostname:myPort/rest/api/2/issue/DEMO-1?fields=id,summary,status,labels,duedate,assignee

This will return json data containing the listed fields for a JIRA record with the key DEMO-1

Does that help?

Thanks,

but after mentioning the issue key still am getting the same error.

The 404 really does mean that there is no JIRA available on that url.

What happens if you visit it in a browser?  What happensif you just go to https://myHostname:myPort ?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published Monday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

502 views 8 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you