# Scope evaluation

There are a few configuration items in Email This Issue that are configured with Projects, Issue Types, or a JQL filter. They make up the scope.

The following settings have scope:&#x20;

* [Manual Email Configuration](/email-this-issue/outgoing-emails/manual-emails/email-this-issue-for-jira-cloud-manual-email-configuration.md)
* [Email Notification Schemes](/email-this-issue/outgoing-emails/email-this-issue-for-jira-cloud-email-notification-schemes.md)
* [Advanced Email Configuration](/email-this-issue/outgoing-emails/email-this-issue-for-jira-cloud-advanced-email-configuration.md)

When Email This Issue searches for the best matching of the above entities, it evaluates their scope. The order of evaluation is specified as described examples in the following. In all screens where these entities are listed, the list order corresponds to the order of evaluation.

## Examples <a href="#scopeevaluation-examples" id="scopeevaluation-examples"></a>

|   | Selected Projects  | Selected Issue Types | JQL Explanation                                                                                                                    | Explanation                                                                                                                                                                                                                                                                                                      |
| - | ------------------ | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1 | Project1, Project2 | Story, Task          | `priority = Highest`                                                                                                               | Most important Story or Task issues from the selected projects.                                                                                                                                                                                                                                                  |
| 2 | Project1           |                      | sprint in `openSprints()`                                                                                                          | Issues from the active sprints in Project1                                                                                                                                                                                                                                                                       |
| 3 |                    | Task, Sub-task, Epic |                                                                                                                                    | All stories, epics or sub-tasks from all projects                                                                                                                                                                                                                                                                |
| 4 |                    |                      | project in (Project1, Project2) AND type in (Story, Bug) AND text \~ "Security" OR project in (Project3, Project4) AND type = Epic | <p>Stories or Bugs related to "Security" in their title or description from Project1 and Project2. <br><br>All Epics from Project3 and Project4 - while this part is in the JQL, Epic as an issur type is already present in Scope 3 with no restrictions, so Scope 3 will be applied instead of this scope.</p> |
| 5 |                    |                      |                                                                                                                                    | All issues in Jira. It is perfectly valid to keep project, type and JQL empty. It will serve as a default configuration for issues not having a better matching scope.                                                                                                                                           |

### Evaluation <a href="#scopeevaluation-evaluation" id="scopeevaluation-evaluation"></a>

Scoped entities are evaluated in the order they are listed. Those that are configured with projects or types are evaluated first, then those that have JQL criteria, and finally the default ones.

Examples for Scope evaluation:

| Issue                                                                                     | Matching Scopes from the above table |
| ----------------------------------------------------------------------------------------- | ------------------------------------ |
| A Story issue that is in an active sprint in Project1 with priority Highest               | Number 1                             |
| A Story issue that is in an active sprint in Project1 with priority normal                | Number 2                             |
| An Epic issue from Project3                                                               | Number 3                             |
| A Story issue from Project2 with the word "security" in its summary with Medium priority. | Number 4                             |
| A Story issue from Project2 not related to "security" with Low priority.                  | Number 5                             |
| A Bug issue from Project3                                                                 | Number 5                             |


---

# 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.meta-inf.hu/email-this-issue/outgoing-emails/email-this-issue-for-jira-cloud-scope-evaluation.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.
