You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: content/issues/planning-and-tracking-with-projects/automating-your-project/adding-items-automatically.md
+23-12
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Adding items automatically
3
-
intro: You can configure your project's built-in workflows to automatically add items from a repository that match a filter.
3
+
intro: You can configure your project's built-in workflows to automatically add items from {% ifversion projects-v2-duplicate-auto-add %}repositories{% else%}a repository{% endif %} that match a filter.
4
4
versions:
5
5
feature: projects-v2-auto-add
6
6
type: tutorial
@@ -10,7 +10,7 @@ topics:
10
10
11
11
## About automatically adding items
12
12
13
-
You can configure your project's built-in workflows to automatically add new items as they are created or updated in a repository. You can define a filter to only add items that meet your criteria.
13
+
You can configure your project's built-in workflows to automatically add new items as they are created or updated in a repository. You can define a filter to only add items that meet your criteria. {% ifversion projects-v2-duplicate-auto-add %} You can also create multiple auto-add workflows, each workflow can have a unique filter and target a different repository. {% endif %}
14
14
15
15
When you enable the auto-add workflow, existing items matching your criteria will not be added. The workflow will add items when created or updated if the item matches your filter. For more information on manually adding items, see "[AUTOTITLE](/issues/planning-and-tracking-with-projects/managing-items-in-your-project/adding-items-to-your-project#bulk-adding-issues-and-pull-requests)."
16
16
@@ -26,6 +26,8 @@ The auto-add workflow supports a subset of filters. You can use the following fi
26
26
27
27
All filters, other than `no`, support negation. For example, you could use `-label:bug` to add issues that do not have the "bug" label.
28
28
29
+
{% ifversion projects-v2-duplicate-auto-add %}
30
+
29
31
The auto-add workflow is limited per plan.
30
32
31
33
| Product | Maximum auto-add workflows |
@@ -36,30 +38,39 @@ The auto-add workflow is limited per plan.
36
38
| {% data variables.product.prodname_ghe_cloud %} | 20 |
37
39
| {% data variables.product.prodname_ghe_server %} | 20 |
38
40
41
+
{% endif %}
42
+
39
43
40
44
## Configuring the auto-add workflow in your project
41
45
42
46
{% data reusables.projects.access-workflows %}
43
-
1. In the "Default workflows" list, click **Auto-add to project**.
1. In the "Default workflows" list, click **Auto-add to project**{% ifversion projects-v2-duplicate-auto-add %} or one of the auto-add workflows you have previously duplicated{% endif %}.
46
48
47
49
1. To start editing the workflow, in the top right, click **Edit**.

52
+
53
+
1. Under "Filters", select the repository you want to add items from.
54
+
1. Next to the repository selection, type the filter criteria you want items to match before they are automatically added to your project.
55
+
1. To enable the new workflow, click **Save and turn on workflow**.
56
+
57
+
{% ifversion projects-v2-duplicate-auto-add %}
50
58
51
-
1. Under "Filters", select the repository you want to add items from.
You can create additional duplicates of the auto-add workflow. Each workflow can target a different repository, allowing you to add items from up to four repositories. You can target the same repository with multiple workflows if the filter is unique for each workflow.
54
62
55
-
1. Next to the repository selection, type the filter criteria you want items to match before they are automatically added to your project.
63
+
Once you have duplicated a workflow, you can click **Edit** to start making changes to it. For more information, see "[Configuring the auto-add workflow in your project](#configuring-the-auto-add-workflow-in-your-project)."
1. In the list of workflows, next to "Auto-add to project" click {% octicon "kebab-horizontal" %}.
58
67
59
-
1. To enable the new workflow, click **Save and turn on workflow**.
68
+

Copy file name to clipboardexpand all lines: content/issues/planning-and-tracking-with-projects/automating-your-project/archiving-items-automatically.md
+8-14
Original file line number
Diff line number
Diff line change
@@ -22,21 +22,15 @@ Projects also have a limit on the number of archived items they can contain. You
22
22
## Configuring automatic archiving in your project
23
23
24
24
{% data reusables.projects.access-workflows %}
25
-
1. In the "Default workflows" list, click **Auto-archive items**.
26
-
27
-

28
-
29
-
1. Next to **When**, check the item type(s) that you want to automatically archive.
30
-
31
-

25
+
1. In the "Default workflows" list, click **Auto-archive items**.{% ifversion projects-v2-workflows-ui-refresh %}
26
+
1. In the top right, click **Edit**.
32
27
33
-
1. Next to {% octicon "filter" aria-label="The filter icon" %}, type the filter criteria you want to use to automatically archive items. You can only use the `is`, `reason`, and `last-updated` filters. For more information about filter syntax, see "[AUTOTITLE](/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/filtering-projects)."
34
-
35
-

36
-
37
-
1. If the workflow is disabled, click the toggle next to **Off** to enable the workflow.
38
-
39
-

28
+

29
+
{% endif %}
30
+
1. Next to **When**, check the item type(s) that you want to automatically archive.
31
+
1. Next to {% octicon "filter" aria-label="The filter icon" %}, type the filter criteria you want to use to automatically archive items. You can only use the `is`, `reason`, and `last-updated` filters. For more information about filter syntax, see "[AUTOTITLE](/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/filtering-projects)."{% ifversion projects-v2-workflows-ui-refresh %}
32
+
1. To save your changes and enable the workflow, click **Save and turn on workflow**.{% else %}
33
+
1. If the workflow is disabled, click the toggle next to **Off** to enable the workflow.{% endif %}
Copy file name to clipboardexpand all lines: data/reusables/projects/access-workflows.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
1. Navigate to your project.
2
2
1. In the top-right, click {% octicon "kebab-horizontal" aria-label="The menu icon" %} to open the menu.
3
-

3
+
4
+

5
+
4
6
1. In the menu, click {% octicon "workflow" aria-label="The workflow icon" %} **Workflows**.
5
-

2. If the workflow can apply to both issues and pull requests, next to **When**, check the item type(s) that you want to act on.
7
+

7
8
8
-

9
+
1. Select whether the workflow should apply to issues, pull requests, or both.
10
+
1. Under "Set value", choose the value that you want to set the status to.
11
+
1. To save your changes and enable the workflow, click **Save and turn on workflow**.
9
12
10
-
3. Next to **Set**, choose the value that you want to set the status to.
11
-
12
-

13
+
{% else %}
13
14
14
-
4. If the workflow is disabled, click the toggle next to **Off** to enable the workflow.
15
+
{% data reusables.projects.access-workflows %}
16
+
1. Under "Default workflows", click on the workflow that you want to edit.
17
+
1. Select whether the workflow should apply to issues, pull requests, or both.
18
+
1. Next to "Set", choose the value that you want to set the status to.
19
+
1. If the workflow is disabled, click the toggle next to "Off" to enable the workflow.
15
20
16
21

0 commit comments