# Create Finding

{% hint style="info" %}
<http://localhost:8080/#/create-finding>
{% endhint %}

### Frontend Fields (CreateFinding.vue)

| Field                       | Description                                                               |
| --------------------------- | ------------------------------------------------------------------------- |
| ID                          | A unique identifier for the finding                                       |
| Title                       | A title/name for the finding                                              |
| Host Name                   | The host where the finding was documented                                 |
| IP Port                     | The IP and the Port in which the finding was discovered                   |
| Description                 | A short description of the finding                                        |
| Long Description            | A longer description of the finding with more details                     |
| Status                      | The current status of the finding                                         |
| Type                        | The type of vulnerability that was found                                  |
| Classification              | The classification of the finding                                         |
| Related Findings            | A potential relationship to another finding                               |
| Evidence                    | A file system for analysts to upload evidence media for the finding       |
| System                      | A potential relationship to a system in which the finding was discovered  |
| Task                        | A potential relationship to a task in which the finding was discovered    |
| Subtask                     | A potential relationship to a subtask in which the finding was discovered |
| Confidentiality             | The value of confidentiality for the finding                              |
| Integrity                   | The value of integrity for the finding                                    |
| Availability                | The value of availability for the finding                                 |
| Analyst                     | The analyst which will be used for logging the finding                    |
| Collaborator                | An analyst that worked on the finding with the original analyst           |
| Posture                     | The location of the analyst under which the finding was discovered        |
| Mitigation Description      | A brief sentence that describes a potential mitigation of the issue       |
| Mitigation Long Description | A longer, more detailed text aread to explain the mitigation              |
| Relevance                   | How relevant the finding is to the system under test                      |
| Effectiveness Rating        | A value of the countermeasure for the finding                             |
| Impact Description          | Describes how impactful the finding is to the system under test           |
| Impact Level                | How important and need of attention the finding is                        |
| Risk                        | A value for the risk the finding presents                                 |
| Likelihood                  | A value that describes how likely an issue is to arise                    |

### Computed values

| Value                 | Description                                                       |
| --------------------- | ----------------------------------------------------------------- |
| titleStack()          | Determines the header label of the page. e.g Analyst/ New Finding |
| heroTitle()           | Determines the title of the page (task, subtask,etc)              |
| heroRouterLinkTo()    | Defines where to go when the header button is clicked             |
| heroRouterLinkLabel() | Defines the name of the header button                             |
| formCardTitle()       | Defines the labels above the overview form                        |

### Methods

| Name           | Description:                                                                    |
| -------------- | ------------------------------------------------------------------------------- |
| submit()       | Submits the request to create a finding                                         |
| displayError() | Used to display an error log, should anything go wrong when submitting the form |
| getSystems()   | Returns the list of systems to be related to the finding                        |
| getTasks()     | Returns the list of tasks to be related to the finding                          |
| getSubtasks()  | Returns the list of subtasks to be related to the finding                       |
| getFindings()  | Returns the list of findings to be related to the finding                       |
| getAnalysts()  | Loads the analysts that could be linked to the finding, as a collaborator       |
| logAction()    | Creates transactions of the creation of a finding                               |
