# Attachments Sync in GitLab Integration

As of now, there’s a limitation to syncing attachments from GitLab. It doesn’t support attachments natively, but it is possible to sync them with a workaround by providing a cookie header.

### How to sync attachments <a href="#how-to-sync-attachments" id="how-to-sync-attachments"></a>

1. Please open your type mappings in your Jira Gitlab integration and go to the **Comments & Attachments** tab. Enable **Synchronize attachments:**

<figure><img src="/files/Pn1Iecp8shVy1huZjatZ" alt=""><figcaption></figcaption></figure>

2. Get the **Cookie header** from your GitLab account. Use the developer's tool (F12 on Windows) within your GitLab’s groups page and go to **Network** > **Groups** > Click on **Headers** and scroll down to **Cookie**.

<figure><img src="/files/EbIrNFicRAiEydSeQMWx" alt=""><figcaption></figcaption></figure>

3. Copy the information and paste it into the **GitLab Cookie Header** field in Getint. Click **Apply,** to submit the changes and save your integration.

<figure><img src="/files/lDCGGD4sPHmuyuvgP4z8" alt=""><figcaption></figcaption></figure>

4. Make sure to test the attachments after enabling the feature.

{% hint style="warning" %}
Currently, attachments are only supported one way from GitLab to the other app in the integration. Also, no API is available to download and upload attachments through a Gitlab integration. As a result, this alternative remains the only option for downloading attachments from synced comments as long as they come from GitLab.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.getint.io/guides/integration-synchronization/jira-gitlab/attachments-sync-in-gitlab-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
