Calling JIRA rest API with Postman

Max Mustermann
Contributor
October 28, 2022

Hello,
it's about the fact that I want to access JIRA with a rest API. I use Postman for this. In Postman, all issues that have escalated should be displayed in JSON format.

The URL I use is:

https://jira.<NAME>.de/rest/api/3/issue/<issueID>

I use my e-mail address as my username and the token as my password.

When sending the get request I get the message 404 Not Found

2 answers

1 accepted

2 votes
Answer accepted
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 28, 2022

Hi @Max Mustermann ,

welcome to the Atlassian community!

I think that the URL is incorrect. In order to use the following rest api (https://docs.atlassian.com/software/jira/docs/api/REST/9.3.1/#api/2/issue-getIssue) you should use JIRABASEURL/rest/api/2/issue/{issueIdOrKey}

In your case it should be https://jira.<NAME>.de/rest/api/2/issue/<issueID>

Rest Api version 3 is for the cloud but I think that you are on a server instance.

Hope this helps,

Fabio

Max Mustermann
Contributor
October 28, 2022

Hello Fabio,

I then get the status: 401 Unauthorized in Postman.

As Autorization I am using my e-mail address as my username and the token as my password.

Like Herbie likes this
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 28, 2022

This is another problem. Please read the following article about authentication https://developer.atlassian.com/server/jira/platform/rest-apis/

Max Mustermann
Contributor
October 28, 2022

I read the article about authentication and authorization. I haven't figured out what to do differently.

The token has not expired. I am using Basic authentication.

It used to work with Postman. Now that I try it with the same data, it doesn't work anymore.

Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 28, 2022

You can't use token with Basic Authentication . Did u tried with Oauth 2.0?

Like Max Mustermann likes this
0 votes
Yana Metodieva
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!
November 25, 2024

@Max Mustermann Have you found the solution?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events