I’m trying to get the GitHub node ID for a Milestone so that I can update my issues with the current Milestone in a given scenario.
While both Search Milestones and Get a Milestone return the milestones as intended, the information is incomplete. It’s missing the Milestones’ node IDs.
I’m unable to assign the milestone using the number, URL, resource path, etc… But where I’m expecting the ID, its not included in the output bundle(s):
Thanks again for your initial assistance here GIGO.
The permissions ended up being fine here, the repo and public_repo were enough: the solution we ended up using was using the “Execute a GraphQL Query” instead of using the “Search Milestones” or “Get a Milestone” modules, as these did not seem to successfully return and Milestone IDs.
Both querying for the milestone ID and using a mutation to modify/update issues were straightforward to do using GraphQL. Posting an example here for posterity / to help out others who need to do something similar with the GitHub integration
Query and Mutation examples for getting/setting Milestone IDs
Replace the MyRepoOwner and MyRepoName above with your own strings, or dynamically using your own output bundles.
We did some later filtering of the results based on the current date and the dueOn, using an array iterator + array aggregator to iterate through the nodes and filter on which milestone we needed. You mave have different needs, but this is what we used: