Clients get lost between the feedback form and ticket status — managers spend an average of 2–3 hours a day manually transferring data from web forms to Jira. As a result, up to 15% of requests are lost, and response time increases by 40%. Support works blindly, and management cannot see the real workload. Our engineers solve this problem in 3–6 days turnkey: integration of your site with Jira API, including ticket creation, status synchronization, webhooks, and a self-service portal for clients. The result — zero request loss, automation of routine, and transparency at every step.
How to authenticate with Jira API?
Jira Cloud uses Basic Auth with an API token. The token is created in account settings — never use the password directly. For Jira Server, OAuth or a personal token (PAT) is used. The example below shows authentication via the Python jira library:
from jira import JIRA
jira = JIRA(
server='https://your-company.atlassian.net',
basic_auth=('[email protected]', JIRA_API_TOKEN) # API token, not password
)
The API token grants access only to the necessary projects. Store it in environment variables, not in code.
| Method | Applicability | Security Level |
|---|---|---|
| Basic Auth + API token | Jira Cloud | Medium (token can be revoked) |
| OAuth 2.0 | Jira Cloud and Server | High (limited privileges) |
| Personal token (PAT) | Jira Server | Medium (convenient for scripts) |
How to create an issue from a form in PHP?
A typical scenario: a user fills out a support form, and a Jira issue is created on the server. We use the Laravel HTTP client to send a POST request to /rest/api/3/issue:
class JiraService
{
public function createIssue(SupportRequest $data): string
{
$resp = Http::withBasicAuth(
config('services.jira.email'),
config('services.jira.token')
)->post(config('services.jira.url') . '/rest/api/3/issue', [
'fields' => [
'project' => ['key' => 'SUPPORT'],
'summary' => "[Web] {$data->subject}",
'description' => [
'type' => 'doc',
'version' => 1,
'content' => [[
'type' => 'paragraph',
'content' => [['type' => 'text', 'text' => $data->message]],
]],
],
'issuetype' => ['name' => 'Support'],
'priority' => ['name' => $data->priority ?? 'Medium'],
'labels' => ['website', 'customer-request'],
'customfield_10014' => $data->customer_email, // Custom email field
],
]);
$issueKey = $resp->json('key'); // SUPPORT-123
// Save the request-to-ticket mapping
SupportTicket::create([
'user_id' => $data->userId,
'jira_key' => $issueKey,
'subject' => $data->subject,
'status' => 'open',
]);
return $issueKey;
}
}
Note: the issuetype field must match the issue type in the project. Custom fields (e.g., client email) are passed by ID — you need to find them in Jira settings beforehand.
How to display the ticket status on the website?
After creating the issue, the client wants to see its status. A GET request to /rest/api/3/issue/{issueKey} returns all necessary fields:
public function getTicketStatus(string $issueKey): array
{
$resp = Http::withBasicAuth($email, $token)
->get(config('services.jira.url') . "/rest/api/3/issue/{$issueKey}");
$issue = $resp->json();
return [
'key': $issue['key'],
'summary': $issue['fields']['summary'],
'status': $issue['fields']['status']['name'],
'updated': $issue['fields']['updated'],
'comments': count($issue['fields']['comment']['comments'] ?? []),
];
}
Display this information in the client's personal account. Important: cache responses for 30–60 seconds to avoid hitting Jira API rate limits (usually 5000 requests per hour).
How to set up webhooks for status synchronization?
Webhooks are push notifications from Jira when an issue changes. They are 100 times more efficient than polling status every 5 minutes. In Jira Cloud, create a webhook with the event jira:issue_updated and specify your site's URL. Handler in Laravel:
Route::post('/webhooks/jira', function (Request $request) {
$event = $request->input('webhookEvent');
$issue = $request->input('issue');
$issueKey = $issue['key'];
if ($event === 'jira:issue_updated') {
$newStatus = $issue['fields']['status']['name'];
SupportTicket::where('jira_key', $issueKey)->update([
'status' => $this->mapJiraStatus($newStatus),
'updated_at' => now(),
]);
// Notify the client about the status change
$ticket = SupportTicket::where('jira_key', $issueKey)->first();
if ($ticket) {
Mail::to($ticket->user->email)->send(new TicketStatusUpdatedMail($ticket));
}
}
return response('ok');
});
Don't forget to verify the X-Hub-Signature for security (see Jira webhooks documentation).
Step-by-step plan for integrating Jira with the website
- Set up authentication: create an API token in Jira Cloud.
- Implement an endpoint for creating tickets from the web form (POST /rest/api/3/issue).
- Save the ticket key in the local database for tracking.
- Configure status display in the personal account (GET /rest/api/3/issue/{key}).
- Create a webhook in Jira for push notifications about status changes.
- Implement a webhook handler on the server that updates the status and notifies the client.
- Test the full cycle: creation → status change → display.
For large clients, we additionally deploy a self-service portal where they can view ticket history and add comments without logging into Jira. This reduces the support load by 40%.
Example cost savings calculation
An e-commerce store with 500 daily requests spent 3 hours on manual transfer. After integration, time dropped to 5 minutes. Savings amounted to $4000 per month thanks to freeing up managers.
How long does integration take?
| Stage | Timeline |
|---|---|
| Ticket creation from forms + status display | 3–4 working days |
| Adding webhooks and email notifications | +2 days |
| Full cycle (with self-service portal) | 7–10 days |
The cost is calculated individually — it depends on the complexity of fields, number of projects, and need for custom web forms. On average, our clients save $3000 to $5000 per month after implementation.
What's included?
- Integration documentation (request schema, keys, examples).
- Source code with comments (PHP/Laravel or Python).
- Webhook setup and testing on staging.
- Training of support team on using the portal.
- 30-day warranty of stable operation.
Our experience: over 50 successful Jira integrations with websites. We guarantee the system won't break under peak loads. Want the same automation? Contact us — within one day we assess your project and propose the integration architecture. Order Jira integration with your website from certified Atlassian partners.







