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

Closed
Open
Created Jan 22, 2013 by Administrator@rootOwner

Issue status not changed via API

Created by: pietbrauer

I am using the v3 of the API and if I change the status (open/close) via the API the response issue has not the status I was sending.

Example PUT Request JSON:

{
    closed = 1;
    id = 7;
    "issue_id" = 42;
    "milestone_id" = null;
    title = "Frank issue";
}

Response:

{
    assignee = "<null>";
    author =     {
        blocked = 0;
        "created_at" = "2013-01-14T20:36:05Z";
        email = "[email protected]";
        id = 7;
        name = AppleDemo;
        username = appledemo;
    };
    closed = 0;
    "created_at" = "2013-01-21T20:18:52Z";
    description = "<null>";
    id = 42;
    labels =     (
    );
    milestone = "<null>";
    "project_id" = 7;
    title = "Frank issue";
    "updated_at" = "2013-01-21T20:18:52Z";
}

Here is the relevant part of the production.log

Started PUT "/api/v3/projects/5/issues/48?private_token=mzJ8yjycgzQhZhb7nez9" for 127.0.0.1 at 2013-01-23 19:46:02 +0100

Redis::CommandError (ERR unknown command 'exec'):
  app/observers/issue_observer.rb:19:in `block in after_update'
  app/observers/issue_observer.rb:18:in `each'
  app/observers/issue_observer.rb:18:in `after_update'
  lib/api/issues.rb:82:in `block (2 levels) in <class:Issues>'
Assignee
Assign to
Time tracking