Feature request: Create and mutate milestones using the v4 API

Hi.

I’m not sure if this is the correct place for feature requests, but I’m building some Github tools for my company and it would really help to be able to create, update and delete milestones using the v4 GraphQL API e.g

mutation {  
 createMilestone(input: {
3 Likes

Agreed. This would be a very useful addition for us.

1 Like

Hi @muano2 ,

Thanks for this feedback! We’re always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I’ve logged your feature request in our internal feature request list. Though I can’t guarantee anything or share a timeline for this, I can tell you that it’s been shared with the appropriate teams for consideration.

Cheers!

Hi @muano2,

Thanks for being here, I think this taken care of with: https://developer.github.com/v4/mutation/createissue/

I hope this helps!

@andreagriffiths11 I’m looking at the mutation you linked above, however this seems to be only for creating issues and not milestones. Am I missing something? I can’t seem to find any documentation supporting creating/editing milestones either.

Thanks!

1 Like

milestone is a field of issue objects:

One might only be able to create a milestone when creating an issue via the API. There’s also no (official) API to associate an issue with a project without adding a card to project board column for instance, while it’s possible to do so via the GitHub website.

I’m confused there is no such field in the input object when using createIssue. https://developer.github.com/v4/input_object/createissueinput/
I do see milestoneID but that would be used after creating a milestone, which is what I can’t find documentation about, at least not through the Graphql api. I’m sure I’m not seeing a tiny little detail here. :thinking: :slightly_smiling_face: