---
title: "Create Jira Ticket For Opportunity"
method: POST
path: "/opportunities/jira"
tags: ["OPPORTUNITIES"]
---

# Create Jira Ticket For Opportunity

`POST /opportunities/jira`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/opportunities/jira`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Create a Jira ticket for an opportunity.

Args:
    db: The database session for accessing the database
    auth: Authentication token
    tenant: Tenant identifier
    client: OpenSearch client
    jira_ticket_request: Parameters for the Jira ticket

Returns:
    Dictionary containing the Jira ticket URL

## Headers

- `x-tenant` string, required

## Request body

- JiraTicketRequest
  - `opportunity_id` string, required
  - `project_key` string
  - `issue_type` string
  - `priority` string, nullable
  - `assignee` string, nullable
  - `additional_fields` object, nullable
  - `altimate_url` string, nullable
  - `query_id` string, nullable
  - `create_jira_ticket` boolean, nullable
  - `action` 'create_jira_ticket' | 'solve_issue'

## Response `200`

Successful Response

- unknown

## Other responses

- `400`: Not supported for public user
- `403`: Not supported for public user
- `422`: Validation Error

---

[API](https://skmtc.dev/myaltimate/apis/myaltimate-api.md) - [All operations](https://skmtc.dev/myaltimate/apis/myaltimate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myaltimate/apis/myaltimate-api/revisions/727657ce54e9?raw)
