Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9453

Closed
Open
Created Jul 13, 2015 by Administrator@rootOwner

Merge request API state=closed do not return expected results

Created by: valermor

When GET /projects/:id/merge_requests?state=opened is used, the API returns a list of 'opened' AND 'reopened'. Makes sense.

When GET /projects/:id/merge_requests?state=closed is used, the API returns a list of 'closed' and 'merged'. This makes the API unusable since I only need 'closed' MR and need to parse all the history of merge requests to filter only the 'closed' one. Moreover, the question would also be what state=merged in the API is for.

Can we get the API only return MRs that are closed and not merged through state=closed?

Assignee
Assign to
Time tracking