Problem
When new issues are created (via gh issue create or the GitHub UI), they are successfully auto-added to the Azure Local Solutions project board (Project #3), but the custom fields — Solution, Priority, and Category — are left blank.
Evidence
All issues created from #49 onwards have empty custom fields:
| Issue |
Repo |
Solution |
Priority |
Category |
| #49+ (sofs-fslogix) |
azurelocal-sofs-fslogix |
❌ empty |
❌ empty |
❌ empty |
| #50-#55 (sofs-fslogix) |
azurelocal-sofs-fslogix |
❌ empty |
❌ empty |
❌ empty |
| #10-#12 (docs site) |
azurelocal.github.io |
❌ empty |
❌ empty |
❌ empty |
Meanwhile, issues #1-#48 (created earlier, presumably with manual field population) all have these fields correctly set.
Root Cause
The add-to-project.yml workflow uses actions/add-to-project@v1.0.2 which only adds the issue to the project — it does not set custom field values:
# .github/workflows/add-to-project.yml (current)
- uses: actions/add-to-project@v1.0.2
with:
project-url: https://github.com/orgs/AzureLocal/projects/3
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
The actions/add-to-project action supports a project-field-values parameter (or the workflow can use gh project item-edit as a follow-up step), but neither is configured.
Project Board Fields
The project has these custom SingleSelect fields that need population:
| Field |
ID |
Options |
| Solution |
PVTSSF_...XuY |
SOFS/FSLogix, AVD, Load Tools, VM Conversion, Docs Site, Workspace |
| Priority |
PVTSSF_...Xvs |
P1-High, P2-Medium, P3-Low |
| Category |
PVTSSF_...XxA |
Feature, Documentation, Infrastructure, Bug |
| Effort |
PVTSSF_...Xxs |
XS, S, M, L, XL |
| Sprint |
PVTIF_...tpM |
Iteration field |
Required Work — Research and Implement
1. Research: Best Approach for Auto-Population
Investigate the following approaches:
| Approach |
How It Works |
Pros |
Cons |
| A: Label-based mapping |
Workflow reads issue labels (solution/sofs, priority/high, type/docs) and maps them to project field values |
Uses existing label conventions, no extra input needed |
Requires label→field mapping logic in workflow |
B: actions/add-to-project field values |
Use the project-field-values parameter (if supported in v1.0.2+) |
Single action, simple |
May not support dynamic mapping |
C: gh project item-edit post-step |
After adding to project, use gh CLI to set each field based on labels |
Full control, can use any logic |
More workflow steps, needs field option IDs |
| D: GitHub App / built-in automation |
Use GitHub Projects built-in automation rules (Settings → Workflows) |
No custom workflow needed |
Limited to auto-set on add, may not read labels |
| E: Issue forms with project fields |
Use issue templates that prompt for Solution/Priority/Category |
Data captured at creation time |
Requires discipline, doesn't work for gh issue create CLI |
Recommended: Approach A or C — Map existing labels to project fields automatically.
2. Label-to-Field Mapping
We already have labels that correspond 1:1 with project fields:
| Label |
→ Project Field |
→ Value |
solution/sofs |
Solution |
SOFS/FSLogix |
solution/avd |
Solution |
AVD |
solution/loadtools |
Solution |
Load Tools |
solution/vmconvert |
Solution |
VM Conversion |
solution/docs-site |
Solution |
Docs Site |
solution/workspace |
Solution |
Workspace |
priority/high |
Priority |
P1-High |
priority/medium |
Priority |
P2-Medium |
priority/low |
Priority |
P3-Low |
priority/critical |
Priority |
P1-High (or add P0-Critical) |
type/feature |
Category |
Feature |
type/docs |
Category |
Documentation |
type/infra |
Category |
Infrastructure |
type/bug |
Category |
Bug |
3. Implementation
4. Repos That Need the Updated Workflow
Acceptance Criteria
References
Problem
When new issues are created (via
gh issue createor the GitHub UI), they are successfully auto-added to the Azure Local Solutions project board (Project #3), but the custom fields — Solution, Priority, and Category — are left blank.Evidence
All issues created from #49 onwards have empty custom fields:
Meanwhile, issues #1-#48 (created earlier, presumably with manual field population) all have these fields correctly set.
Root Cause
The
add-to-project.ymlworkflow usesactions/add-to-project@v1.0.2which only adds the issue to the project — it does not set custom field values:The
actions/add-to-projectaction supports aproject-field-valuesparameter (or the workflow can usegh project item-editas a follow-up step), but neither is configured.Project Board Fields
The project has these custom
SingleSelectfields that need population:PVTSSF_...XuYPVTSSF_...XvsPVTSSF_...XxAPVTSSF_...XxsPVTIF_...tpMRequired Work — Research and Implement
1. Research: Best Approach for Auto-Population
Investigate the following approaches:
solution/sofs,priority/high,type/docs) and maps them to project field valuesactions/add-to-projectfield valuesproject-field-valuesparameter (if supported in v1.0.2+)gh project item-editpost-stepghCLI to set each field based on labelsgh issue createCLIRecommended: Approach A or C — Map existing labels to project fields automatically.
2. Label-to-Field Mapping
We already have labels that correspond 1:1 with project fields:
solution/sofssolution/avdsolution/loadtoolssolution/vmconvertsolution/docs-sitesolution/workspacepriority/highpriority/mediumpriority/lowpriority/criticaltype/featuretype/docstype/infratype/bug3. Implementation
add-to-project.ymlin all repos that use it (or create an org-level reusable workflow)4. Repos That Need the Updated Workflow
azurelocal-sofs-fslogix—.github/workflows/add-to-project.ymlazurelocal.github.io— needsadd-to-project.ymladded (currently missing!)aurelocal-avd— check if workflow existsazurelocal-loadtools— check if workflow existsazurelocal-vm-conversion-toolkit— check if workflow existsAcceptance Criteria
References
.github/workflows/add-to-project.ymlactions/add-to-projectdocs: https://github.com/actions/add-to-project