# Dependencies

**Dependencies to existing items**

In aqua, all dependencies between items are easily visualised using the dependency graph. You can access the dependencies view by clicking on 'Dependencies' in the navigation bar on the left side of an item.

You can access the dependencies view by clicking on 'Dependencies' in the navigation bar on the left side of an item. This will display all the dependencies for the selected item, as well as the dependencies of the dependent items. You can also switch to the tree view, where you can use a drop-down menu to scroll through further levels of traceability.

<figure><img src="/files/hUnKmxBm5int8BX4Pbnc" alt=""><figcaption><p>Dependencies view</p></figcaption></figure>

The dependencies can be automatically created, e.g. when a defect is created from a test case execution. You can also create further dependencies from the selected element to any other existing element.

To do this, click on an item type in the 'Set Dependency' section. Here you have an overview of all the items of that type in the project, and you can narrow the view further by selecting a folder on the left, or by entering a search term in the search bar. Then you can select the Link Items (Link Test Cases, Link Defects, etc.) button to link the desired items. You can also define a Dependency Type.&#x20;

<figure><img src="/files/pVlzanTHVFEZMSpZPFRd" alt=""><figcaption><p>Linking a new dependency to the existing item</p></figcaption></figure>

The different dependency types are for information purposes only and can be displayed in the dependency view as well as shown and evaluated in reports. In the following the possible dependency types for all item types in regards to all other item types are listed (in the tree view):&#x20;

The different dependency types are for information purposes only and can be displayed both in the Dependency View, and in reports.&#x20;

Below is a list of the possible dependency types for all item types in relation to all other item types (in the tree view):

**For Requirements:**

<figure><img src="/files/xIeULlCBUjyGNw7OWdwZ" alt=""><figcaption><p>Dependencies types for Requirements in relation to other elements</p></figcaption></figure>

**For Test Cases:**

<figure><img src="/files/686UpTGBNcPZ83mhUkRk" alt=""><figcaption><p>Dependencies types for Test Cases in relation to other elements</p></figcaption></figure>

**For Test Scenarios:**

<figure><img src="/files/ihRUuTve3GdOSWIh0PK5" alt=""><figcaption><p>Dependencies types for Test Scenario in relation to other elements</p></figcaption></figure>

**For Defects:**&#x20;

<figure><img src="/files/7UVJTBfajQT4s38lwbup" alt=""><figcaption><p>Dependencies types for Defects in relation to other elements</p></figcaption></figure>

You can also remove dependencies at any time by clicking on the dependent item and then selecting the icon with the broken chain.

<figure><img src="/files/sIVxaUpcUCxnY2Skxb5j" alt=""><figcaption><p>Removing existing dependencies</p></figcaption></figure>

Dependencies can also be added using the context menu in the Item Browser. To do this, copy the item to the clipboard by right-clicking and selecting Copy. The next step is to right-click on the item for which you want to add the dependency and select the previously copied item, which will now appear under 'Add Dependency'.

<figure><img src="/files/e1EQ59nJjnDPFdBxkeLp" alt=""><figcaption><p>Add dependencies by using the context menu</p></figcaption></figure>

The dependencies can also be displayed in the [item preview](/documentation/navigation-page/preview-item-details.md) in the navigation.&#x20;

### **Create new dependent item** <a href="#create_new_dependent_item" id="create_new_dependent_item"></a>

You can also create new dependent items directly from existing items. To do this, open an item and select an item type from the 'Create Dependent Item' section in the ribbon. A new tab will open with a new item and a dependency will be added.

<figure><img src="/files/zw7Ig2tdbyZf7spAuHXA" alt=""><figcaption><p>Creating dependent item directly from the existing one</p></figcaption></figure>

In addition to automatically creating a dependency between the two elements, field values from shared value sets and text fields can be automatically transferred. More information on this can be found in this [article](/documentation/items/general-item-capabilities/taking-over-field-values-between-items.md).


---

# 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.aqua-cloud.io/documentation/items/general-item-capabilities/dependencies.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.
