In order to restore parts or whole of a configuration, you need to start the restore process after uploading a file.
The uploaded files can be restored by clicking on the three dots at the end of the backup row and clicking on Restore.
The restore configuration has four stages:
- Entity selection
- Conflict resolution
- Overview
- Import results
The first step in the restore process is the Entity selection where you can select which parts of your configuration you would like to import into your server instance.
The entities, such as Email Template, Configuration, Notifications or Responses are presented with drop-down menus and are marked with a grey highlight.
The rows without any highlights are entity items (such as email templates, configurations, notifications, responses etc.).
The entity items can be one of the following four:
- Name of an entity (e.g.: the name of a template)
- The entity is a pattern (e.g.: MD5 pattern) or a regular expression, in which case this is displayed
- A Project and/or an Issue type can be selected within the entity, in which case it is presented as <Project name>; <IssueType name>
- A Project and/or an Issue type and/or JQL criteria can be entered within the entity, in which case it is presented as <Project name>; <IssueType name>; <JQL filter>
You can select the entities individually by clicking on their respective checkboxes or you can select them all by clicking on the checkbox next to the name of the entity.
You can proceed with the restoration by clicking on Conflict resolution or cancel the process by clicking on Cancel.
During the import there might be conflicts regarding the items you wish to restore. These items can be found on the left pane, while the resolution to their conflicts are presented on the right pane of the window.
All conflicts need to be resolved before being able to proceed to Step 3 - Overview. You can always navigate back to the entity selection by pressing the Back to entity selection button.
The items you wish to import on the left pane are listed by their entities and their conflicts have to be resolved separately by clicking on the entity item first.
This brings up the conflict unique to that entity item and displays a drop-down menu called Restore type. Here, the user can select how the data should be restored and therefore resolve the conflict.
Conflicts for the entity items can only be resolved one-by-one, they cannot be resolved altogether by clicking on the collective entity and selecting one restore type.
There are two ways to resolve a conflict:
- Create new entity
In this case a new scope has to be given to the imported entity (such as a new name of a project/issue type setting). This is the default restore type when the user is uploading a configuration in an empty instance.
- Overwrite existing entity
In this case you need to select an existing entity in the system and we will overwrite its attributes but not its scope.
When selecting Create new entity, you can click on the Insert imported parameters button next to the restore type. This will automatically fill out the entity's parameters with the imported parameters such as the name or the scope (project, an issue type or in some cases a JQL query) of the entity.
On the below figure the conflict resolution screen for an Email Template is shown:
You can also set these parameters manually, in this case by selecting the project, the issue type and a JQL for a Context:
When selecting Overwrite existing entity, a Select entity drop-down list or a Select entity list (with radio buttons) is displayed depending on the entity type with the currently available entity items from within the system.
This is how the Select entity drop-down list is displayed:
This is how the Select entity list with radio buttons is shown:
The below table specifies the required or optional attributes of every entity that may be restored during the restore process. Attributes marked with an asterisk ( * ) are required to fill in:
Entity Name | Create New Entity | Overwrite Existing Entity |
---|
Email Template | Entity name* | Select existing entity from the dropdown list* |
Manual Email Defaults | Select a project Select an issue type JQLfilter | Select existing entity from the list* |
Notifications | Entity name* | Select existing entity from the dropdown list* |
Canned Responses | Entity name* | Select existing entity from the dropdown list* |
Field Rules | Select a project Select an issue type | Select existing entity from the list |
Distribution Lists | Entity name* | Select existing entity from the dropdown list* |
SMTP Connections | Entity name* | Select existing entity from the dropdown list* |
Mail Accounts | Entity name* | Select existing entity from the dropdown list* |
Mail Handlers | Entity name* | Select existing entity from the dropdown list* |
NextGen Mail Handlers | Entity name* | Select existing entity from the dropdown list* |
Classic Mail Handlers | Select a project Select an issue type | Select existing entity from the list* |
Contexts | Select a project Select an issue type JQL filter | Select existing entity from the list* |
General Configuration | Only overwriting an existing configuration is available | No action needed |
Mail Queue Configuration | Only overwriting an existing configuration is available | No action needed |
Purge Configurations | Only overwriting an existing configuration is available | No action needed |
MD5 patterns | No action needed |
Attachment Name Filters | No action needed |
After selecting how to resolve all conflicts, click on Check. If all conflicts have been successfully resolved, you'll be redirected to the Overview page. If there are one or more conflicts that could not be resolved appropriately, a red exclamation mark appears next to the entity item until their respective conflicts are resolved. Conflicts already resolved are marked with a green checkmark:
You may cancel the restore process anytime by clicking on Cancel.
Once every conflict has been resolved, an overview page is displayed, its data is generated based on the selected entities.
The overview page displays the following information:
- Entity type: type of the entity that is generated from the original scope of the import file
- Original entity name: name of the entity that is generated from the original scope of the import file
- Action: what will happen to the original entity (currently the options are to CREATE NEW or OVERWRITE EXISTING entity)
- Entity name after restore: how the entity can be found after the import
After checking your list of entities in the overview page, click on Confirm to finalize the restore or Cancel to cancel the process.
The import results page displays the log of imported entities and their status.
Imported entities can be found on the left pane, while the results of their import are presented on the right pane of the window including the attributes and logging their status.
The import can have three results:
- Success: all data has been imported successfully.
- Warning: there were items during the import that could not be identified, therefore no action has been taken on those items.
- Failed: a fatal error has occurred, the import is failed, no action has been taken on any of the items.
On the results page, a link is displayed next to the entity which takes you to the Edit page of the entity:
IDE EGY SCREENSHOTOT!
The import log can be found in the browser's console log as well in a JSON format.