jira_jira_upload_attachment
Upload staged files to a Jira issue as attachments using upload:// URIs from the /upload endpoint, completing the client-side file upload flow.
Instructions
Upload one or more staged files to a Jira issue as attachments.
This is step 3 of the client-side file upload flow (after construct_upload_endpoint and POSTing files to /upload).
Each upload:// URI is resolved from the server-side staging store, then uploaded directly to Jira via the REST API — no base64, no context-window overhead.
Staged files are removed from the store after a successful upload. Unused uploads expire automatically after 30 minutes.
Args: ctx: The FastMCP context. issue_key: Jira issue key (e.g., 'PROJ-123'). upload_uris: List of upload:// URIs from the /upload endpoint response.
Returns: JSON string with per-file upload results.
Raises: ValueError: If in read-only mode or Jira client is unavailable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_key | Yes | Jira issue key to attach the file(s) to (e.g., 'PROJ-123') | |
| upload_uris | Yes | List of upload:// URIs returned by the /upload endpoint after calling construct_upload_endpoint and uploading your files. Example: ['upload://sessions/abc123/xyz456'] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |