To retrieve details of issues for a specific Jira project using Postman, you need to structure your API request properly. The URL you provided is the base endpoint for searching issues, but to filter the issues by a specific Jira project, you need to include a JQL (Jira Query Language) parameter to specify the project.
Here’s how to set up your request:
Step 1: Setup Postman
Open Postman and create a new request.
Select the HTTP method: Set it to GET.
Step 2: Configure the URL
You can use the following URL format to retrieve issues from a specific project:
Replace YOUR_PROJECT_KEY with the key of the project whose issues you want to query. For example, if your project key is "TEST", your URL will look like this:
Jira APIs require authentication. You can use either Basic Authentication (username and API token) or OAuth. Here’s how to set it up using Basic Authentication:
Go to the Authorization tab in Postman.
Choose Basic Auth from the dropdown menu.
Enter your Jira username and API token. If you don’t have an API token, you can generate one by following these steps:
Go to your Jira account.
Navigate to Account Settings > Security > API token.
Click on Create API Token.
Step 4: Send the Request
Click on the Send button in Postman.
You should receive a JSON response with the details of the issues in the specified project.
Example
Here is an example of how your URL and setup would look in Postman:
Ensure your Jira instance allows API access and that you have the necessary permissions to view the issues in the project you're querying. If you encounter any errors, check the response and consult the Jira API documentation for troubleshooting.