# Draft version of an element

The draft version mechanism enables secure editing of an application item (such as a form, process, or script) without affecting published versions.

### **Creating a draft version**

Going to edit an item automatically causes:

* disabling editing for other users within the given **major version** (e.g. `1.*`),
* creation of **a draft version** based on the selected version (e.g. `1.8`).

{% hint style="info" %}
For each major version, there can be only **one active draft copy**. If one already exists, editing access will be blocked until it is saved or discarded.
{% endhint %}

***

### **Working with a draft copy**

While editing, changes are saved automatically:

* **every 30 seconds**,
* and **when leaving the editor** (e.g. closing the tab, switching to another view).

The editor's top bar displays **time since the last save** to the server. When the editor is reopened, the draft version is restored from the last saved state.

<figure><img src="/files/5a923fe2e8733528d2735bcbacdaae8a5058126e" alt=""><figcaption><p align="center"><em><strong>Figure 1.</strong> Draft copy information</em></p></figcaption></figure>

Changes are approved by clicking the **Save as new version**button, which causes:

* saving all changes to the repository,
* creating a new major or minor version,
* releasing the edit lock.

***

### **Discarding a draft version**

The author of a draft version can отказаться? Wait translate to English. The author... can at any time отказаться? Let's do: The author of a draft version can at any time отказаться from the saved changes by selecting the option from the left sidebar menu **Discard draft copy**.

This operation:

* deletes the current draft version,
* restores editing access to that major version for other users.

<figure><img src="/files/abe3b8dc1634d790cc8b9da5347eaf1920462231" alt=""><figcaption><p align="center"><em><strong>Figure 2.</strong> Menu with the "Discard draft copy" option</em></p></figcaption></figure>

***

### **Unlocking item editing**

If the draft version was created by another user and editing is locked, it is possible to **force unlock editing** via the option **Unlock item editing** (also in the menu on the left).

<figure><img src="/files/a6bb806bbb3fa9ed7d3ff8238085ddbb978d3c77" alt=""><figcaption><p align="center"><em><strong>Figure 3.</strong> Menu with the "Unlock artifact editing" option</em></p></figcaption></figure>

{% hint style="warning" %}
*Note: this operation is irreversible – all unsaved changes in the draft version will be permanently deleted.*
{% endhint %}

<figure><img src="/files/7d323c649293073d7628bdf0604c943027ecc7ef" alt=""><figcaption><p align="center"><em><strong>Figure 4.</strong> Popup with artifact unlock confirmation</em></p></figcaption></figure>


---

# 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.eximee.com/documentation/documentation-en/budowanie-aplikacji/aplikacja-biznesowa/wersjonowanie/wersja-robocza-elementu.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.
