Skip to content

Commit 8576203

Browse files
authored
Hack week 2025: remove unneeded FBV instances (20) - Projects (#54012)
1 parent aa1a293 commit 8576203

File tree

19 files changed

+37
-119
lines changed

19 files changed

+37
-119
lines changed

content/issues/planning-and-tracking-with-projects/automating-your-project/archiving-items-automatically.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,13 @@ Projects also have a limit on the number of archived items they can contain. You
4040
## Configuring automatic archiving in your project
4141

4242
{% data reusables.projects.access-workflows %}
43-
1. In the "Default workflows" list, click **Auto-archive items**.{% ifversion projects-v2-workflows-ui-refresh %}
43+
1. In the "Default workflows" list, click **Auto-archive items**.
4444
1. In the top right, click **Edit**.
4545

4646
![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)
47-
{% else %}
48-
1. Next to **When**, check the item type(s) that you want to automatically archive.{% endif %}
49-
1. In the "Filters" field, type the filter criteria you want to use to automatically archive items. You can only use the `is`, `reason`, and `updated` filters.{% ifversion projects-v2-workflows-ui-refresh %}
50-
1. To save your changes and enable the workflow, click **Save and turn on workflow**.{% else %}
51-
1. If the workflow is disabled, click the toggle next to **Off** to enable the workflow.{% endif %}
47+
48+
1. In the "Filters" field, type the filter criteria you want to use to automatically archive items. You can only use the `is`, `reason`, and `updated` filters.
49+
1. To save your changes and enable the workflow, click **Save and turn on workflow**.
5250

5351
## Further reading
5452

content/issues/planning-and-tracking-with-projects/automating-your-project/using-the-api-to-manage-projects.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ gh api graphql -f query='
395395
nodes{
396396
id
397397
fieldValues(first: 8) {
398-
nodes{
398+
nodes{
399399
... on ProjectV2ItemFieldTextValue {
400400
text
401401
field {
@@ -420,9 +420,9 @@ gh api graphql -f query='
420420
}
421421
}
422422
}
423-
}
423+
}
424424
}
425-
content{
425+
content{
426426
... on DraftIssue {
427427
title
428428
body
@@ -574,7 +574,7 @@ gh api graphql -f query='
574574
mutation {
575575
updateProjectV2(
576576
input: {
577-
projectId: "PROJECT_ID",
577+
projectId: "PROJECT_ID",
578578
title: "Project title",
579579
public: false,
580580
readme: "# Project README\n\nA long description",
@@ -618,8 +618,8 @@ gh api graphql -f query='
618618
projectId: "PROJECT_ID"
619619
itemId: "ITEM_ID"
620620
fieldId: "FIELD_ID"
621-
value: {
622-
text: "Updated text"
621+
value: {
622+
text: "Updated text"
623623
}
624624
}
625625
) {
@@ -673,8 +673,8 @@ gh api graphql -f query='
673673
projectId: "PROJECT_ID"
674674
itemId: "ITEM_ID"
675675
fieldId: "FIELD_ID"
676-
value: {
677-
singleSelectOptionId: "OPTION_ID"
676+
value: {
677+
singleSelectOptionId: "OPTION_ID"
678678
}
679679
}
680680
) {
@@ -717,8 +717,8 @@ gh api graphql -f query='
717717
projectId: "PROJECT_ID"
718718
itemId: "ITEM_ID"
719719
fieldId: "FIELD_ID"
720-
value: {
721-
iterationId: "ITERATION_ID"
720+
value: {
721+
iterationId: "ITERATION_ID"
722722
}
723723
}
724724
) {
@@ -826,10 +826,6 @@ gh api graphql -f query='
826826

827827
{% endcli %}
828828

829-
{% ifversion projects-v2-webhooks %}
830-
831829
## Using webhooks
832830

833831
You can use webhooks to subscribe to events taking place in your project. For example, when an item is edited, {% data variables.product.product_name %} can send a HTTP POST payload to the webhook's configured URL which can trigger automation on your server. For more information about webhooks, see [AUTOTITLE](/webhooks-and-events/webhooks/about-webhooks). To learn more about the `projects_v2_item` webhook event, see [AUTOTITLE](/webhooks-and-events/webhooks/webhook-events-and-payloads#projects_v2_item).
834-
835-
{% endif %}

content/issues/planning-and-tracking-with-projects/creating-projects/copying-an-existing-project.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ title: 'Copying an existing {% data variables.projects.project_v2 %}'
33
shortTitle: Copying a project
44
intro: You can use an existing project as a template by copying it.
55
versions:
6-
feature: projects-v2-copy-a-project
6+
fpt: '*'
7+
ghes: '*'
8+
ghec: '*'
79
type: tutorial
810
topics:
911
- Projects
@@ -16,7 +18,7 @@ You can copy an existing project and use it as a template to save time configuri
1618

1719
When you copy a project, the new project will contain the same {% data reusables.projects.what-gets-copied %}. {% ifversion projects-v2-org-templates-improvements %}The new project will not contain the original project's items, collaborators, or team and repository links.{% else %}The new project will not contain the original project's items, workflows, insights, collaborators, or team and repository links.{% endif %}
1820

19-
{% ifversion projects-v2-org-templates %}{% data reusables.projects.org-templates %}{% endif %}
21+
{% data reusables.projects.org-templates %}
2022

2123
## Copying an existing project
2224

@@ -27,9 +29,9 @@ When you copy a project, the new project will contain the same {% data reusables
2729

2830
1. In the menu, click **{% octicon "copy" aria-hidden="true" %} Make a copy**.
2931
1. Optionally, if you want all draft issues to be copied with the project, in the "Make a copy" dialog, select **Draft issues will be copied if selected**.{%- ifversion projects-v2-org-templates-improvements %}{%- else %}
30-
32+
3133
![Screenshot showing the "Make a copy" form.](/assets/images/help/projects-v2/copy-project-form.png)
32-
34+
3335
{%- endif %}
3436
1. Under "Owner", select either the organization that will own the new project or your personal account.
3537
1. Under "New project name", type the name of the new project.

content/issues/planning-and-tracking-with-projects/creating-projects/creating-a-project.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,13 @@ allowTitleToDifferFromFilename: true
1313

1414
{% data variables.product.prodname_projects_v2 %} are an adaptable collection of items that stay up-to-date with {% data variables.product.company_short %} data. Your projects can track issues, pull requests, and ideas that you note down. You can add custom fields and create views for specific purposes.
1515

16-
{% ifversion projects-v2-copy-a-project %}
17-
1816
You can also choose to use an existing project as a template and copy the views and custom fields to a new project. For more information, see [AUTOTITLE](/issues/planning-and-tracking-with-projects/creating-projects/copying-an-existing-project).
1917

20-
{% endif %}
21-
2218
## Creating a project
2319

2420
### Creating an organization project
2521

26-
Organization projects can track issues and pull requests from the organization's repositories. {% ifversion projects-v2-org-templates %}{% data reusables.projects.org-templates %}{% endif %}
22+
Organization projects can track issues and pull requests from the organization's repositories. {% data reusables.projects.org-templates %}
2723

2824
{% data reusables.projects.create-project %}
2925

content/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/customizing-the-board-layout.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ topics:
1515

1616
For more information about changing a view to use the board layout, see [AUTOTITLE](/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/changing-the-layout-of-a-view#changing-the-project-layout).
1717

18-
{% ifversion projects-v2-column-limits %}
19-
2018
## Setting a limit on the number of items in a column
2119

2220
You can set a limit for the number of cards in a particular column in a board layout. Setting a limit does not restrict anyone from adding cards that would exceed the column's limit, nor does it restrict any automations from adding cards. Column limits are unique to each view in your project.
@@ -30,8 +28,6 @@ The current count of cards and the column's limit is displayed at the top of the
3028
1. Optionally, to remove the limit, clear the entry.
3129
1. Click **Save**.
3230

33-
{% endif %}
34-
3531
## Showing and hiding fields
3632

3733
{% data reusables.projects.customize.show-hide-field %}
@@ -44,8 +40,6 @@ In the board layout, you choose any single select or iteration field for your co
4440
1. Click **{% octicon "columns" aria-hidden="true" %} Column field**.
4541
1. Click the field you want to use.
4642

47-
{% ifversion projects-v2-column-visibility %}
48-
4943
## Showing and hiding columns in board layout
5044

5145
In the board layout, you can choose which columns to display. The available columns are made up of the contents of your selected column field.
@@ -55,7 +49,6 @@ In the board layout, you can choose which columns to display. The available colu
5549
![Screenshot of a board layout scrolled to the very right. The "Add a new column to the board" button is highlighted with an orange outline.](/assets/images/help/projects-v2/board-add-column.png)
5650

5751
1. Select the columns you want to show.
58-
{% endif %}
5952

6053
{% ifversion projects-v2-slice-panel %}
6154

@@ -65,8 +58,6 @@ In the board layout, you can choose which columns to display. The available colu
6558

6659
{% endif %}
6760

68-
{% ifversion projects-v2-consistent-sorting %}
69-
7061
## Sorting by field values
7162

7263
You can sort items by a field value.
@@ -76,8 +67,6 @@ You can sort items by a field value.
7667
7768
{% data reusables.projects.customize.sort %}
7869

79-
{% endif %}
80-
8170
{% ifversion projects-v2-swimlanes %}
8271

8372
## Grouping by field values
@@ -90,10 +79,6 @@ You can use a custom field value to group items and create horizontal sections o
9079

9180
{% endif %}
9281

93-
{% ifversion projects-v2-numeric-summary %}
94-
9582
## Showing the sum of a number field
9683

9784
{% data reusables.projects.customize.sum %}
98-
99-
{% endif %}

content/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/customizing-the-roadmap-layout.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ You can set the date or iteration fields that your roadmap will use to position
2828
1. Optionally, to create a new date or iteration field, click **{% octicon "plus" aria-hidden="true" %} New field**, type the name of your field, and click **Save**. You can then select the new field or create another.
2929
1. Select a date or iteration field for "Start date" and "Target date."
3030

31-
{% ifversion projects-v2-roadmap-markers %}
32-
3331
## Setting vertical markers
3432

3533
You can configure vertical markers on a roadmap to show your iterations, the dates of items in your project, and the milestones associated with items in your project.
@@ -40,8 +38,6 @@ You can configure vertical markers on a roadmap to show your iterations, the dat
4038

4139
1. In the menu, select which markers you want to display on your roadmap.
4240

43-
{% endif %}
44-
4541
## Setting the zoom level
4642

4743
You can choose the density of items on your roadmap. You can zoom in to show one month at a time or, for a greater overview, you can zoom out to show a quarter of a year or a full year.
@@ -60,36 +56,18 @@ You can choose the density of items on your roadmap. You can zoom in to show one
6056

6157
{% endif %}
6258

63-
{% ifversion projects-v2-consistent-sorting %}
64-
6559
## Sorting by field values
6660

6761
You can sort items by a field value.
6862

6963
{% data reusables.projects.customize.sort %}
7064

71-
{% endif %}
72-
73-
{% ifversion projects-v2-roadmap-markers %}{% else %}
74-
75-
## Showing and hiding fields
76-
77-
When you show and hide fields on the roadmap layout, you define which fields are shown when the side panel opens. This setting will not affect the information visible on the roadmap layout.
78-
79-
{% data reusables.projects.customize.show-hide-field %}
80-
81-
{% endif %}
82-
8365
## Grouping by field values
8466

8567
You can group items by a custom field value.
8668

8769
{% data reusables.projects.customize.group-fields %}
8870

89-
{% ifversion projects-v2-numeric-summary %}
90-
9171
## Showing the sum of a number field
9272

9373
{% data reusables.projects.customize.sum %}
94-
95-
{% endif %}

content/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/customizing-the-table-layout.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,8 @@ You can change the order of rows.
6565

6666
You can sort items by a field value.
6767

68-
{% ifversion projects-v2-consistent-sorting %}{% else %}
69-
70-
> [!NOTE]
71-
> When a table is sorted, you cannot manually reorder rows.
72-
73-
{% endif %}
74-
7568
{% data reusables.projects.customize.sort %}
7669

77-
{% ifversion projects-v2-numeric-summary %}
78-
7970
## Showing the sum of a number field
8071

8172
{% data reusables.projects.customize.sum %}
82-
83-
{% endif %}

content/issues/planning-and-tracking-with-projects/learning-about-projects/about-projects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To get started and create a project, see [AUTOTITLE](/issues/planning-and-tracki
2121

2222
Your projects are built from the issues and pull requests you add, creating direct references between your project and your work. Information is synced automatically to your project as you make changes, updating your views and charts. This integration works both ways, so that when you change information about a pull request or issue in your project, the pull request or issue reflects that information. For example, change an assignee in your project and that change is shown in your issue. You can take this integration even further, group your project by assignee, and make changes to issue assignment by dragging issues into the different groups.
2323

24-
To learn more about managing items in your project, see [AUTOTITLE](/issues/planning-and-tracking-with-projects/managing-items-in-your-project/adding-items-to-your-project){% ifversion projects-v2-bulk-table-editing %} and [AUTOTITLE](/issues/planning-and-tracking-with-projects/managing-items-in-your-project/editing-items-in-your-project){% endif %}.
24+
To learn more about managing items in your project, see [AUTOTITLE](/issues/planning-and-tracking-with-projects/managing-items-in-your-project/adding-items-to-your-project) and [AUTOTITLE](/issues/planning-and-tracking-with-projects/managing-items-in-your-project/editing-items-in-your-project).
2525

2626
### Adding metadata to your items
2727

content/issues/planning-and-tracking-with-projects/managing-items-in-your-project/adding-items-to-your-project.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,8 @@ When you add an issue or pull request to your project, an event will be added to
2626

2727
{% endif %}
2828

29-
{% ifversion projects-v2-bulk-table-editing %}
30-
3129
For more information about making bulk changes to your items after adding them, see [AUTOTITLE](/issues/planning-and-tracking-with-projects/managing-items-in-your-project/editing-items-in-your-project).
3230

33-
{% endif %}
34-
3531
### Automatically adding issues and pull requests
3632

3733
You can configure a built-in workflow to automatically add issues and pull requests from a repository when they meet specific filter criteria. For more information about configuring a workflow, see [AUTOTITLE](/issues/planning-and-tracking-with-projects/automating-your-project/adding-items-automatically).
@@ -95,16 +91,12 @@ You can use the command palette when viewing your project to quickly add items.
9591
1. Start typing "Add items" and press <kbd>Return</kbd>.
9692
{% data reusables.projects.bulk-add %}
9793

98-
{% ifversion projects-v2-create-issue-modal %}
99-
10094
## Creating issues
10195

10296
{% data reusables.projects.about-issue-modal %}
10397

10498
{% data reusables.projects.create-issue-modal %}
10599

106-
{% endif %}
107-
108100
## Creating draft issues
109101

110102
Draft issues are useful to quickly capture ideas. Unlike issues and pull requests that are referenced from your repositories, draft issues exist only in your project.

content/issues/planning-and-tracking-with-projects/managing-items-in-your-project/editing-items-in-your-project.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ title: 'Editing items in your {% data variables.projects.project_v2 %}'
33
shortTitle: Editing items
44
intro: 'There are several methods you can use within your {% data variables.projects.project_v2 %} to quickly make changes to multiple items.'
55
versions:
6-
feature: projects-v2-bulk-table-editing
6+
fpt: '*'
7+
ghes: '*'
8+
ghec: '*'
79
type: tutorial
810
topics:
911
- Projects

0 commit comments

Comments
 (0)