Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 2

Retrieve Issues in a repo based on milestone and labels using GraphQL

How to retrieve Issues in a GIT repo based on thier milestone and labels using GraphQL

 

Found this on stackoverflow.com

1 Reply
Copilot Lvl 3
Message 2 of 2

Re: Retrieve Issues in a repo based on milestone and labels using GraphQL

 

query {
  repository(owner: "wso2", name: "product-is") {
    milestone(number: 75) {
      title
      issues(first: 100, states: [OPEN], orderBy: {field: CREATED_AT, direction: DESC}, labels: "Type/Bug") {
        totalCount
      }
    }
  }
}

 

 

This above query will retrieve the total OPEN Issue count in 

 - org: wso2

 - repo: product-is

 - milestone no: 75

 - label: Type/Bug