# JQL on Associations Data

To use Associations data in JQL, you need to sync the associations data into a field in Jira.

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

Step by step guide:

1. Locate the Dropdown for Field Synchronization in Global Settings\
   \
   ![](/files/67PueJiL5ddED1NxCbLj)
2. Create custom field:\
   To mirror the Number of Associations, you need to create a custom field of the type "Number."\
   ![](/files/RcfMauQEAXFtkipfONCb)\
   For Association IDs: You will need to create a Paragraph custom field.\
   ![](/files/kluTTLhU1ojBMjZeWllx)

{% hint style="info" %}
Please make sure to add the custom fields to Edit Issue Screen. \
If the fields are not added to the **Edit Issue Screen**, they cannot be updated.

If the fields are present on the **View Issue Screen**, they become editable and can be updated manually. To prevent manual updates, it is recommended to remove these fields from the View Issue Screen.
{% endhint %}

3. Select Field to mirror Association data\
   ![](/files/O0ZR5uBN3Yo1Fnnkuvz6)
4. Save Changes.\
   Please note that the field association data will update whenever the associations are updated.
5. Use JQL for Queries\
   You can now use JQL to query issues based on the synced association data in Jira. For example, run JQL queries to filter or report on issues with specific associations.


---

# 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.mybytes.tech/atlassian-cloud/zoho-desk-for-jira/user-guide/jql-on-associations-data.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.
