Project fields don't seem available for Issues when writing workflows. #43154
-
Select Topic AreaQuestion BodyWas wondering if this is intentional. The documentation for the issue object states that issues have fields for projects associated with the issue(ex. projectCards, projectItems, ProjectsV2). however when building an action that uses these it seems that they don't exist. I printed out the github.event.issue and it seems none of these project fields are available.Is it because these fields can circularly reference the issue so they can't actually be serialized. If so how would one check if someone assigned an issue to a project on creation? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
The documentation you linked to is about the GraphQL API. However,
My understanding is that you need to use the GraphQL API manually to access the information, e.g. by using |
Beta Was this translation helpful? Give feedback.
The documentation you linked to is about the GraphQL API. However,
github.eventgives you the webhook event payload of the REST API:issueslink under Webhook event payload)issueobject, expand the Properties ofissue)My understanding is that you need to use the GraphQL API manually to access the information, e.g. by using
gh api graphql -f query='...'in a step'sruncode (source), or by using theactions/github-scriptaction: https://github.com/actions/github-s…