Atlassian Jira API: A Step-by-Step Guide to Common Tasks
Need to automate Jira tasks without missed results? This atlassian jira api guide covers authentication, issue creation, JQL search, and workflows. Read now.
The Atlassian Jira API lets you read issues, create work, search with JQL, and move issues through workflows using HTTP requests. You can connect it to scripts or internal services without clicking through Jira for every task.
But here's the truth: a working request can still fail when authentication, permissions, required fields, or pagination are overlooked. One missing issue type field may stop issue creation, while an incomplete search may quietly return only part of your results.
Here’s why a clear sequence helps: start with a small authenticated request, then add one task at a time. I’ll walk you through common Jira Cloud API operations, explain the differences you should check for self-managed Jira, and show how to handle errors safely.
Atlassian Jira API: start with these common tasks
For Jira Cloud, most REST requests use your site’s base address followed by /rest/api/3. A practical first workflow is to authenticate, retrieve an issue, create or search for work, and then handle workflow transitions.
Before you begin, confirm whether your site is Jira Cloud or Jira Data Center. The REST API version and base path can differ, especially when a self-managed instance uses a context path.
- Choose the right API base. For a standard Jira Cloud site, use
https://your-domain.atlassian.net/rest/api/3. Check your Jira administrator’s guidance for a self-managed instance.
- Prepare authentication. For a simple Jira Cloud script, use your Atlassian account email and an API token with Basic authentication. OAuth 2.0 is another option for integrations that need an authorization flow.
- Test access with a read request. Retrieve an issue you can view before attempting changes. This helps separate authentication problems from missing permissions or invalid request details.
- Try one operation at a time. Search for an issue, create a test issue in an approved project, or inspect available transitions.
- Handle responses deliberately. Check the HTTP status, parse the response, and account for pagination and rate limits before running a request repeatedly.
The examples below use Jira Cloud’s REST API v3. Replace placeholders with your own site, project, and issue values, and never paste a real token into a shared script.

Authenticate safely before making requests
For a basic Jira Cloud script, Atlassian API tokens are commonly used with Basic authentication. The request pairs your Atlassian account email with the token, rather than your account password.
For example, a command-line request can read the email and token from environment variables:
curl --request GET \
--url "https://your-domain.atlassian.net/rest/api/3/myself" \
--user "$ATLASSIAN_EMAIL:$ATLASSIAN_API_TOKEN" \
--header "Accept: application/json"
Do not place credentials in browser-side code, public repositories, or logs. Store them in a secure environment variable or approved secrets manager, and rotate them if they are exposed.
Know which authentication method fits
API tokens work well for controlled scripts and service integrations using Basic authentication. OAuth 2.0 is often a better fit when an app needs users to authorize access through a consent flow.
Permissions still matter after authentication. An account or app can only access Jira projects and actions allowed by its permissions and granted scopes.
You might be wondering: why does a valid token still get a 403 response? The identity may be authenticated, but it may lack permission to view the project, create issues, or perform the requested action.
Read, create, and search Jira issues
Issue operations are often the first useful API tasks. A GET request retrieves an issue, a POST request can create one, and JQL can find issues matching specific conditions.
Retrieve an issue
Use the issue key or ID in the request path. For example, this request retrieves selected fields for issue DEMO-42:
curl --request GET \
--url "https://your-domain.atlassian.net/rest/api/3/issue/DEMO-42?fields=summary,status,assignee" \
--user "$ATLASSIAN_EMAIL:$ATLASSIAN_API_TOKEN" \
--header "Accept: application/json"
Request only the fields your task needs. A smaller response is easier to inspect and can reduce unnecessary processing in your integration.
Create an issue
To create an issue, send a JSON body to POST /issue. Required fields vary by project configuration and issue type, so check the fields available to your account before relying on a fixed request.
curl --request POST \
--url "https://your-domain.atlassian.net/rest/api/3/issue" \
--user "$ATLASSIAN_EMAIL:$ATLASSIAN_API_TOKEN" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '{
"fields": {
"project": { "key": "DEMO" },
"summary": "Review the API integration",
"issuetype": { "name": "Task" }
}
}'
A successful response includes the created issue’s key and ID. If Jira reports a missing field, inspect the project’s configuration and supply the required value in the expected format.
Search with JQL
For Jira Cloud, the enhanced search endpoint is POST /search/jql. Send a JQL query and specify the fields your task needs.
curl --request POST \
--url "https://your-domain.atlassian.net/rest/api/3/search/jql" \
--user "$ATLASSIAN_EMAIL:$ATLASSIAN_API_TOKEN" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '{
"jql": "project = DEMO AND statusCategory != Done ORDER BY updated DESC",
"fields": ["summary", "status", "assignee"],
"maxResults": 50
}'
For instance, a support team could search for unresolved work in one project, then show each issue’s summary and assignee in an internal queue. Restricting the query by project and status keeps results relevant.
Move issues through a workflow
Changing an issue’s status is a workflow transition, not a direct edit to a status field. Jira controls which transitions are available based on the issue’s current state and workflow rules.
First, request the transitions available for the issue:
curl --request GET \
--url "https://your-domain.atlassian.net/rest/api/3/issue/DEMO-42/transitions" \
--user "$ATLASSIAN_EMAIL:$ATLASSIAN_API_TOKEN" \
--header "Accept: application/json"
Then use the transition ID returned in that response. IDs and available actions can differ between workflows, so retrieve them rather than assuming a particular value.
curl --request POST \
--url "https://your-domain.atlassian.net/rest/api/3/issue/DEMO-42/transitions" \
--user "$ATLASSIAN_EMAIL:$ATLASSIAN_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"transition": { "id": "31" }
}'
Let me explain: an issue that can move from “To Do” to “In Progress” may not offer the same action once it reaches “Done.” A robust integration checks the current options and handles unavailable transitions gracefully.
Manage pagination, errors, and rate limits
Jira may return search results in pages instead of one complete response. Your integration should check the response for pagination details and request subsequent pages until it has reached the end.
With Jira Cloud’s enhanced search endpoint, use the returned nextPageToken when another page is available. Keep the same JQL and requested fields while continuing the search.
Respond to common HTTP statuses
- 400 Bad Request: Check JSON syntax, field names, field formats, and any required values.
- 401 Unauthorized: Confirm the site address and authentication method, then verify the account and token.
- 403 Forbidden: Check project permissions, issue access, and any required app scopes.
- 404 Not Found: Confirm the issue key, endpoint path, and whether the account can see the requested item.
- 429 Too Many Requests: Pause requests and respect the
Retry-After response header when provided.
For temporary errors, use bounded retries with a delay that increases between attempts. Avoid blindly retrying issue creation after a timeout; the first request may have succeeded even if your script never received the response.
Plan an integration that is safe to maintain
A reliable integration starts with a narrow purpose. For example, a team might retrieve issues assigned to a service account and display their status in an internal operations view.
Use a dedicated account or app identity where practical, grant only the permissions required, and keep credentials out of browser code. Log request outcomes without recording tokens or other sensitive values.
Test against a non-production project when you can. Confirm how your script handles missing fields, permission failures, duplicate attempts, empty search results, and rate limits before it processes important work.
Organize API-related project work with ONES.com

Value proposition
ONES.com is a unified project management and knowledge management platform powered by ONES Assistant. Teams can use ONES Project for project work and ONES Wiki for team knowledge; the products are sold separately.
If your main need is organizing API integration work rather than calling Jira endpoints, ONES.com provides a Jira alternative for coordinating tasks and keeping team guidance accessible.
Core capabilities
- Issue tracking feels fragmented → ONES Project offers project management → teams can organize API tasks and follow progress in one project workspace.
- Jira workflows need adaptation → Jira-compatible workflows in ONES Project → teams can map familiar processes while adjusting them to their own delivery stages.
- Manual status reporting takes time → Built-in reporting → project leads can review progress without assembling every update by hand.
- Standard fields do not fit every task → Custom workflows and fields → teams can capture details such as integration owner, test stage, or target release.
- Sprint planning feels disconnected from execution → Sprint management → teams can plan API work and track it through an iteration.
- Repeated project actions create busywork → Automation → teams can reduce routine steps where their configured workflows support automation.
- Project knowledge sits apart from execution → ONES Wiki provides knowledge management → teams can maintain guidance alongside project work when they use both products.
- Deployment requirements limit options → Cloud, On-Premise, Private Cloud, and Air-gapped deployments → teams can select an environment that fits their operating requirements.
ONES Project and ONES Wiki are sold separately, so a team can choose the project or knowledge management product it needs. ONES.com offers a free plan for up to 30 seats.
Cloud and self-hosted deployments have full feature parity. For teams that need self-hosting, this supports an on-premise option without requiring a separate reduced-feature edition. Jira-compatible workflows and built-in reporting can also help teams reduce reliance on plugins for common project needs.
Application scenarios
API rollout across several teams: A platform team can use ONES Project to track endpoint implementation, test readiness, and rollout tasks. Custom fields can distinguish work by service or release stage.
Maintaining integration guidance: A team using ONES Wiki can organize internal guidance about authentication, request patterns, and support procedures. Keeping that knowledge in the team’s knowledge management workspace can make it easier to find during project work.
ONES.com is for coordinating project and knowledge work. It does not replace the Jira REST API in the examples above; use the API when your integration needs to interact with Jira itself.
Common challenges and practical fixes
- The request returns 401: Verify the site address, account email, token, and authentication format. Test a simple identity request before troubleshooting a more complex operation.
- Issue creation returns a field error: Check the project’s required fields and the issue type’s configuration. Start with a minimal valid request, then add optional fields one at a time.
- A status change fails: Retrieve the issue’s available transitions and use an ID from the current response. Confirm that the account can perform the transition.
- Search results seem incomplete: Check whether more pages are available and continue with the returned pagination token. Also review the JQL conditions and the account’s project visibility.
- A retry creates duplicate work: Do not repeat a create request automatically after an ambiguous timeout. Check whether the issue already exists before deciding whether to submit again.
FAQs about the Jira API
What is the base URL for the Jira Cloud REST API?
A standard Jira Cloud request uses your site address followed by /rest/api/3, such as https://your-domain.atlassian.net/rest/api/3. Add the endpoint path after that base. Jira Data Center deployments may use a different API version or a context path, so verify the correct address with your administrator.
Can I use a Jira API token instead of my password?
For Jira Cloud scripts using Basic authentication, use your Atlassian account email and an API token rather than your account password. Keep the token out of shared code and browser-side applications. OAuth 2.0 may suit integrations that need a user authorization flow or more controlled access.
How do I find issues with the Jira API?
Use JQL with Jira Cloud’s enhanced search endpoint, POST /rest/api/3/search/jql. Include the query and the fields you need in the JSON body. Check pagination details in the response, then continue with the returned token when another page is available.
Why can’t I change an issue’s status by editing its status field?
Jira status changes are controlled by workflow transitions. Retrieve the transitions available for the issue, then submit one of the returned transition IDs. If no suitable transition appears, check the workflow state and the account’s permissions before trying again.
Conclusion
The Jira REST API can support everyday work such as retrieving issues, creating tasks, searching with JQL, and moving issues through a workflow. Start with a small request, use authentication carefully, and account for permissions and pagination.
But here's the truth: a request that works once is only the beginning. Test error cases, avoid unsafe retries, and keep credentials protected as your integration grows.
When API work also needs clear ownership, reporting, and team guidance, ONES.com offers project and knowledge management options. Choose the workflow that fits your team, then build the integration one reliable step at a time.