diff --git a/.github/workflows/record-in-review.yml b/.github/workflows/record-in-review.yml index b5ad4f4c4c..f6b52fb6f7 100644 --- a/.github/workflows/record-in-review.yml +++ b/.github/workflows/record-in-review.yml @@ -56,9 +56,10 @@ jobs: STATUS_FIELD_ID: PVTSSF_lAHOBepif84AfH1xzgUjmnw UNDER_REVIEW_OPTION_ID: 5fce39d2 run: | - items_ids = echo '${{ env.LINKED_ISSUE_IDs }}' | jq map(select(.projectItems.nodes[].project.id == $PROJECT_ID)) | jq -r '.[] | .id' - echo '${{ env.LINKED_ISSUE_IDs }}' | jq -r '.[] | .id' | while read ISSUE_ID; do - echo "ISSUE_ID=$ISSUE_ID" + project_items = echo '${{ env.LINKED_ISSUE_IDs }}' | jq '.[] | .projectItems.nodes[]' + item_ids = echo $project_items | jq '.[] | .projectItems.nodes[] | select(.project.id == "$PROJECT_ID") | .id' + echo $item_ids | while read ISSUE_ITEM_ID; do + echo "ISSUE_ITEM_ID=$ISSUE_ITEM_ID" updatedAt="$( gh api graphql -f query=' mutation($issueId:ID!, $projectId:ID!) { updateProjectV2ItemFieldValue(