MCPcopy Create free account
hub / github.com/FastLED/FastLED / update_single_select

Function update_single_select

ci/github_project_sync.py:231–255  ·  view source on GitHub ↗

Update a single-select field on a project item.

(
    project_id: str, item_id: str, field_id: str, option_id: str
)

Source from the content-addressed store, hash-verified

229
230
231def update_single_select(
232 project_id: str, item_id: str, field_id: str, option_id: str
233) -> None:
234 """Update a single-select field on a project item."""
235 query = """
236 mutation($projectId: ID!, $itemId: ID!, $fieldId: ID!, $optionId: String!) {
237 updateProjectV2ItemFieldValue(input: {
238 projectId: $projectId
239 itemId: $itemId
240 fieldId: $fieldId
241 value: {singleSelectOptionId: $optionId}
242 }) {
243 projectV2Item { id }
244 }
245 }
246 """
247 graphql(
248 query,
249 {
250 "projectId": project_id,
251 "itemId": item_id,
252 "fieldId": field_id,
253 "optionId": option_id,
254 },
255 )
256
257
258def update_date(project_id: str, item_id: str, field_id: str, date_value: str) -> None:

Callers 1

mainFunction · 0.85

Calls 1

graphqlFunction · 0.70

Tested by

no test coverage detected