---
title: Jira issue attachments
description: Perform operations on Jira issue attachments including retrieval, creation, and deletion.
category: Application
tags: [jira, issue tracking, attachments, api, integration]
---

# Jira issue attachments

## Description

The **Jira Issue Attachments** activity enables your workflow to manage file attachments on Jira issues by interacting with the Jira REST API.

This activity supports the following operations:

- **Get** – Retrieve a specific attachment by ID.
- **Get All** – Fetch all attachments associated with a given Jira issue.
- **Create** – Upload and attach one or more files to a Jira issue.
- **Delete** – Remove a specific attachment by its ID.

Use this activity to:

- Automate evidence or report uploads to a Jira ticket
- Retrieve all attached files (logs, screenshots, PDFs) for processing
- Programmatically delete outdated or sensitive attachments

> **Use Case**:  
> After executing automated test scripts in a CI/CD pipeline, you can use the `Create` operation to attach test reports or screenshots to a Jira issue. You can then use `Get All` to retrieve and archive attachments for audit or reporting purposes.

---

## Input

| Input Type | Format       | Description                                 |
| ---------- | ------------ | ------------------------------------------- |
| **Data**   | File or Text | File(s) or metadata required for operations |

> Inputs are required only for the `Create` operation (file upload).

---

## Output

| Output Type | Format | Description                                   |
| ----------- | ------ | --------------------------------------------- |
| **Data**    | JSON   | Metadata about the retrieved or updated files |

---

## Configuration Fields

| Field Name        | Description                                                                                     | Required                      |
| ----------------- | ----------------------------------------------------------------------------------------------- | ----------------------------- |
| **Connection**    | Jira OAuth connection used to authenticate API requests.                                        | Yes                           |
| **Site Name**     | The base URL of the Jira site (e.g., `your-domain.atlassian.net`).                              | Yes                           |
| **Operation**     | Type of action to perform: <ul><li>Get</li><li>Get All</li><li>Create</li><li>Delete</li></ul>  | Yes                           |
| **Issue Key**     | The Jira issue ID or key (e.g., `PROJ-101`) used to identify the target issue.                  | Yes                           |
| **Attachments**   | File(s) to upload. Required only for **Create** operation.                                      | Optional (based on operation) |
| **Attachment ID** | The ID of the attachment to retrieve or delete. Used in **Get** and **Delete** operations only. | Optional (based on operation) |

---

## Sample Input

_Not applicable_ for `Get`, `Get All`, and `Delete` operations.

For `Create`, you must upload one or more files.

---

## Sample Configuration

| Field        | Value                   |
| ------------ | ----------------------- |
| `Connection` | `Jira OAuth Connection` |
| `Site Name`  | `myteam.atlassian.net`  |
| `Issue Key`  | `PROJ-456`              |
| `Operation`  | `Get All`               |

---

## Sample Output

| Attachment Name | Size   | Download Link                              |
| --------------- | ------ | ------------------------------------------ |
| error_log.txt   | 12 KB  | [Download](https://jira.atlassian.net/...) |
| screenshot.png  | 245 KB | [Download](https://jira.atlassian.net/...) |
| report.pdf      | 1.2 MB | [Download](https://jira.atlassian.net/...) |

---

---
