API for POSTMAN

I am looking for API calls that i can use in POSTMAN. Does JIRA have anything like that?

Server: https://developer.atlassian.com/server/jira/platform/rest-apis/
Cloud: https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/

You can import WADL spec in Postman.

https://docs.atlassian.com/software/jira/docs/api/REST/8.22.1/jira-rest-plugin.wadl

Can someone post some examples of how to generate an authorization token? Attached is a screen shot of what i am using for another system…hopefully the screen shot can be seen.

Where do I get all of the data for the fields needed to create the token?

You will need to use Basic Auth with a generated API token. See also https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#ad-hoc-api-calls

API tokens can be generated here: Atlassian account

I have create the API tokens from there, but i do not know how to use them in POSTMAN? I do not have a url and don’t know how to find what I am looking for.

There are a lot of URL’s for the Jira API

What are you trying to achieve? Do you have a specific operation that you want to do? It helps if you can give some context

The final goal is to write a .net application that will pull down our tickets from JIRA and dump into a SQL database this will likely run multiple times a day, so i need an automated way to connect and read the database. The purpose for this is to build our own dashboards. Any assistance you can provide will be wonderful.

Thanks

Ok, so you can retrieve a list of issues in Postman by using a GET request to http://<NAME>.atlassian.net/rest/api/3/search?jql=<JQL> where is the site name (basically the URL that you are going to access Jira cloud) and is a search query.

In the Authorization tab, you select Basic Auth and enter your username (probably your email) and the password, which is the API token that you generated earlier.

This should return a list of issues that match your JQL search query.

For more options on that request, see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-get

2 Likes

Sorry for the delay. I cannot seem to find my ticket in the system.

I am trying to create a .net application that will pull our tickets out of JIRA daily.

I have been able to manually create tokens , but I cannot access them in POSTMAN.

My command for POSTMAN is

http://frshelpdesk.atlassian.net/rest/api/3/resource/KEY-1

using Type OAuth2.0 and pasting in that token.

When I click on send, I am get a 404 Not Found error.

Any help would be appreciated.

I finally fumbled through and made a little progress.

from the link you posted, I was able to successfully connect in postman using

GET /rest/api/3/issue/picker

unfortunately, that only gives me 19 of 41 matching issues, and when logged into Jira I see 50 open tickets…and it only gives me basic info.

i have made some good progress on my postman calls…quick question. I am trying to get all issues for a project, but the maxresults are set to 50…how do i change that field?

http://*******.atlassian.net/rest/api/3/search?jql=project=FRSC

This is my call I am using.

@CharityWorthington,

I’m glad you are making progress with the REST APIs.

Unfortunately, (and undocumentedly) the default 50 is also the highest value. You can only set maxresults to smaller integers. Sometimes that’s helpful when you only need 1 result. Otherwise, this is “left over” behavior from when that value could be tuned by on-premise admins.

Your client will need to implement pagination.

1 Like

The tokens that are generated from our account settings /security tab…do those ever expire?

If so, is there a way to generate a new token in postman? Each time I connect?