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
  • #2775

Closed
Open
Created Jan 25, 2013 by Administrator@rootOwner

Closing issue via API indicates wrong user performing the action

Created by: mphuff

We are using version 4.0 of Gitlab. Below are a set of curl commands to demonstrate the functionality I am describing. Assume that I have the following setup:

Issue ID: 47 Project ID: 96 Private token: JyrMpqSeNUoYqXehFmt3

The following commands will demonstrate this problem.

# Adding a note to this existing issue will indicate that I created the note:
curl -d "body=This is a note to show that the proper user is tagged for the issue note" http://<MY GITLAB SERVER>/api/v3/projects/96/issues/49/notes?private_token=JyrMpqSeNUoYqXehFmt3
# Closing this issue through the API will mark this as closed by a different user
curl -X PUT -d "closed=1" http://<MY GITLAB SERVER>/api/v3/projects/96/issues/49?private_token=JyrMpqSeNUoYqXehFmt3

You can see the issue in the picture below. My API key corresponds to the person "Micah Huff".

badAPIcallsForClosingIssue

This is obviously a critical issue as the incorrect user is being tagged as having done some work in the system.

Thank you, Micah

Assignee
Assign to
Time tracking