Skip to content

Commit 4261207

Browse files
authored
Make changes to "Using the built-in automations" to support auto-close (#50063)
1 parent 35cea78 commit 4261207

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

content/issues/planning-and-tracking-with-projects/automating-your-project/using-the-built-in-automations.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,21 @@ topics:
1616

1717
{% endif %}
1818

19-
{% data variables.product.prodname_projects_v2 %} includes built-in workflows that you can use to update the **Status** of items based on certain events. For example, you can automatically set the status to **Todo** when an item is added to your project or set the status to **Done** when an issue is closed.
19+
{% data variables.product.prodname_projects_v2 %} includes built-in workflows that you can use to update the **Status** of items based on certain events. For example, you can automatically set the status to **Todo** when an item is added to your project{% ifversion projects-v2-auto-close %}, close issues when the issue's status in your project is changed,{% endif %} or set the status to **Done** when an issue is closed.
2020

2121
When your project initializes, two workflows are enabled by default: When issues or pull requests in your project are closed, their status is set to **Done**, and when pull requests in your project are merged, their status is set to **Done**.
2222

23-
{% ifversion projects-v2-auto-archive %}You can also configure {% ifversion projects-v2-auto-add %}workflows{% else %}a workflow{% endif %} to automatically archive items when they meet set criteria{% ifversion projects-v2-auto-add %} and to automatically add items from a repository when they match a filter{% endif %}. For more information, see "[AUTOTITLE](/issues/planning-and-tracking-with-projects/automating-your-project/archiving-items-automatically){% ifversion projects-v2-auto-add %}" and "[AUTOTITLE](/issues/planning-and-tracking-with-projects/automating-your-project/adding-items-automatically){% endif %}."{% endif %}
23+
You can also configure workflows to automatically archive items when they meet set criteria and to automatically add items from a repository when they match a filter. For more information, see "[AUTOTITLE](/issues/planning-and-tracking-with-projects/automating-your-project/archiving-items-automatically)" and "[AUTOTITLE](/issues/planning-and-tracking-with-projects/automating-your-project/adding-items-automatically)."
24+
25+
## Enabling a built-in workflow
2426

2527
You can enable or disable the built-in workflows for your project.
2628

27-
{% data reusables.projects.enable-basic-workflow %}
29+
{% data reusables.projects.access-workflows %}
30+
1. Under "Default workflows", click on the workflow that you want to edit.
31+
1. In the top right, click **Edit**.
32+
33+
![Screenshot showing a project's menu bar. The "Edit" button is highlighted with an orange rectangle.](/assets/images/help/projects-v2/workflow-start-editing.png)
34+
35+
1. Depending on the workflow you have selected, make changes to the fields to configure the workflow's behavior.
36+
1. To save your changes and enable the workflow, click **Save and turn on workflow**.
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Issue 14171
2+
# ProjectV2 auto-closing
3+
versions:
4+
fpt: '*'
5+
ghec: '*'
6+
ghes: '>=3.14'

0 commit comments

Comments
 (0)