A Guide to Using the Atlassian Jira API: Steps & Examples
Need a smoother Jira integration? Learn the atlassian api jira steps for authentication, issues, and search. Read now to get started.
Jira’s REST API lets you read issues, create work items, and connect Jira to other services through standard HTTP requests. For Jira Cloud, you’ll usually send requests to your site’s API endpoint and authenticate with an Atlassian API token.
But here's the truth: a working request is only the beginning. Authentication mistakes, missing permissions, pagination, and rate limits can turn a small integration into a frustrating troubleshooting session.
Here’s a practical path through the process. You’ll prepare access, make safe test calls, work with issues and search, then handle common errors. I’ll also show when an API-driven Jira workflow may call for a broader project management approach.
A practical guide to using the Jira REST API
Start with a read-only request to confirm your site address and credentials. Then retrieve an issue, create a test issue if your permissions allow it, and add search or pagination only when you need them.
Jira Cloud provides REST API version 3 at an address such as https://your-site.atlassian.net/rest/api/3. Replace your-site with your Jira Cloud site name. Jira Data Center uses a different base address and can vary by deployment.
- Choose an authentication method. For a personal script against Jira Cloud, use your Atlassian account email with an API token. For an app serving multiple people, evaluate OAuth 2.0 and the permissions your app needs.
- Check access before writing. Confirm that your account can access the project and issue you want to use. API requests respect Jira permissions.
- Test a simple read request. Call the current-user endpoint to check whether your site address and credentials work.
- Retrieve one issue. Request a known issue key and a small set of fields, such as its summary and status.
- Add writes or search carefully. Create a test issue in an appropriate project, then expand the workflow to include search, pagination, or automation.
- Handle failures and protect credentials. Check response codes, keep tokens out of logs, and plan for rate limits before running requests at scale.
For a first request, set credentials as environment variables in your local shell or secure runtime. Do not paste a real token into a shared script or terminal recording.
export JIRA_EMAIL="you@example.com"
export JIRA_API_TOKEN="replace-with-your-token"
export JIRA_BASE_URL="https://your-site.atlassian.net"
curl --request GET \
--url "$JIRA_BASE_URL/rest/api/3/myself" \
--user "$JIRA_EMAIL:$JIRA_API_TOKEN" \
--header "Accept: application/json"
A successful call returns details for the authenticated account. If you see an authentication or permission error, check the site address, token, and account access before changing the request.

Prepare authentication and permissions
For a personal Jira Cloud integration, Basic authentication commonly pairs your Atlassian account email with an API token. The token acts like a password for API access, so store it in a secrets manager or protected environment variable.
Here's why: a token can inherit meaningful access from its account. If an account can view a confidential project, a script using its token may be able to view it too.
Use an account with only the permissions needed for the integration. For an application used by several people, OAuth 2.0 can support a more appropriate authorization flow than sharing one person’s credentials.
Jira Data Center authentication options depend on the deployment and version. Check the REST API guidance for the specific instance rather than assuming Cloud instructions apply unchanged.
Read and create Jira issues with examples
Once the current-user call works, retrieve a single issue to confirm you can access the project. The issue key below is an example; substitute one available to your account.
curl --request GET \
--url "$JIRA_BASE_URL/rest/api/3/issue/DEMO-123?fields=summary,status,assignee" \
--user "$JIRA_EMAIL:$JIRA_API_TOKEN" \
--header "Accept: application/json"
The response includes the requested fields in JSON. Ask only for what your integration needs; a smaller response is easier to inspect and can reduce unnecessary processing.
You can create an issue with a POST request. Confirm the project key, issue type, and required fields first, and use a test project when you are learning.
curl --request POST \
--url "$JIRA_BASE_URL/rest/api/3/issue" \
--user "$JIRA_EMAIL:$JIRA_API_TOKEN" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '{
"fields": {
"project": { "key": "DEMO" },
"summary": "API integration test",
"issuetype": { "name": "Task" }
}
}'
A successful creation call returns an issue identifier and key. Required fields can differ by project configuration, so a 400 response may mean the request needs an additional field or a valid field value.
Search issues with JQL and manage pagination
Jira Query Language (JQL) helps narrow a search. For example, a project team might look for unresolved work in one project with project = DEMO AND statusCategory != Done ORDER BY created DESC.
For Jira Cloud, the issue search endpoint supports a POST request with a JQL query, selected fields, and a result limit. The example asks for a small first page.
curl --request POST \
--url "$JIRA_BASE_URL/rest/api/3/search/jql" \
--user "$JIRA_EMAIL:$JIRA_API_TOKEN" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '{
"jql": "project = DEMO AND statusCategory != Done ORDER BY created DESC",
"fields": ["summary", "status", "assignee"],
"maxResults": 25
}'
Search results may span multiple pages. Check the response for its pagination details, then use the returned next-page token when the endpoint provides one. Don’t assume the first response contains every matching issue.
Keep the requested fields and page size appropriate to your use case. For example, a daily report may need only issue keys, summaries, and statuses instead of every field available.
Handle errors, rate limits, and safe retries
Read the HTTP status code and response body when a call fails. A 401 often points to authentication, while a 403 can indicate insufficient permission. A 404 may mean the issue is unavailable or the endpoint is incorrect.
A 400 usually calls for inspecting the request fields, JQL, or JSON formatting. Jira’s response can include details that help identify what needs correcting.
When Jira returns 429, slow down and respect any retry guidance in the response. A brief pause followed by a controlled retry is safer than sending the same request continuously.
For calls that change Jira, consider whether repeating a request could create duplicate work. Log useful status details, avoid recording tokens or sensitive issue content, and build retry logic around the operation’s behavior.
When an API workflow points to ONES.com
If your main goal is connecting project work to other systems, the Jira API may be the right fit. If the larger issue is fragmented project and knowledge management, you may also evaluate ONES.com as a separate platform option.

Value proposition
ONES.com brings project management and knowledge management together, with ONES Project for project work and ONES Wiki for team knowledge. The products are sold separately, so you can assess the part that fits your needs.
Core capabilities
- Pain: Teams rely on different tools for planning and tracking. ONES capability: ONES Project supports Jira-compatible workflows. Result: Teams can evaluate familiar project processes in another platform.
- Pain: A team’s reports require extra setup. ONES capability: Built-in reporting helps surface project progress. Result: Teams can review status without assembling every update manually.
- Pain: A standard workflow does not match an approval path. ONES capability: Custom workflows and fields support tailored project processes. Result: Teams can represent their work more closely.
- Pain: Sprint planning and execution feel disconnected. ONES capability: Sprint management supports iterative delivery. Result: Teams can organize sprint work within the project environment.
- Pain: Repetitive project actions take staff time. ONES capability: Automation can handle supported recurring actions. Result: Teams can reduce routine manual steps.
- Pain: A deployment must meet specific infrastructure needs. ONES capability: Deployment options include Cloud, On-Premise, Private Cloud, and Air-gapped. Result: Teams can assess an option that matches their environment.
- Pain: Self-hosting can raise feature availability questions. ONES capability: Cloud and self-hosted versions have full feature parity. Result: Deployment choice does not require accepting a reduced feature set.
- Pain: Teams want project and knowledge management under one platform umbrella. ONES capability: ONES.com offers ONES Project and ONES Wiki, with ONES Assistant providing AI capabilities. Result: Teams can assess the products against their distinct needs.
Application scenarios
A software team that currently uses Jira workflows might compare ONES Project when reviewing project management options. It should map its issue types, fields, permissions, and integrations before deciding whether to migrate.
An organization with restricted network requirements could assess an On-Premise, Private Cloud, or Air-gapped deployment. A team that also wants a knowledge base could separately evaluate ONES Wiki for its team practices and reference material.
ONES.com is not presented here as a drop-in replacement for Jira’s REST API. If your integration depends on Jira-specific endpoints, confirm API and integration requirements before changing platforms.
Common challenges and practical fixes
- Authentication keeps failing. Check that you are using the correct site URL, Atlassian account email, and API token. Confirm the credential has not been revoked, and retry with the current-user endpoint.
- The issue exists, but the API cannot retrieve it. Confirm the account has permission to browse the project and view the issue. A valid issue key does not override Jira access rules.
- Issue creation returns a validation error. Review the required fields and allowed values for that project and issue type. Test with a minimal request, then add optional fields one at a time.
- Search results appear incomplete. Inspect the pagination details and request the next page when needed. A result limit controls the size of a response, not necessarily the full set of matches.
- A scheduled integration exceeds limits. Reduce request frequency, retrieve only needed fields, and respond to rate-limit signals with controlled delays. Avoid rapid retries that add load without fixing the cause.
Frequently asked questions
What is the Jira REST API used for?
The Jira REST API lets an authorized integration communicate with Jira using HTTP requests. Common tasks include retrieving issue details, creating work items, searching with JQL, and connecting project activity with another service. The available actions depend on the endpoint, Jira version, and account permissions. Start with a read request and confirm the response before adding operations that change project work.
How do I authenticate to the Jira Cloud API?
A personal script can commonly authenticate to Jira Cloud with your Atlassian account email and an API token. Store the token securely and avoid embedding it in shared code or logs. Apps serving multiple people may need an OAuth 2.0 flow instead. Authentication methods for Jira Data Center can differ, so check the guidance for that deployment and version.
Can I use the Jira API to create an issue?
Yes. Jira Cloud’s issue endpoint accepts a POST request with a JSON body containing required issue fields, such as the project, summary, and issue type. Project settings may require extra fields or particular values. Test in an appropriate project first, then inspect the response and confirm that the new issue appears as expected.
Why does my Jira API request return a 403 or 429?
A 403 response commonly means the authenticated account does not have permission for the requested action. Check project access and the operation’s permissions. A 429 response indicates that the request rate needs attention. Reduce call frequency and follow any retry guidance included in the response rather than repeating the call immediately.
Conclusion
A reliable Jira API workflow begins with a small, permission-aware request. Confirm authentication, retrieve a known issue, then add issue creation, JQL search, and pagination as your use case requires.
When requests fail, check the status code and response details before changing several things at once. Protect tokens, limit unnecessary calls, and handle rate limits deliberately. If your broader need involves project or knowledge management, compare platforms against your workflows and integration requirements before making a change.