Validation error when update board spec via project settings api (OD-2610)
Sebastian opened 1 month ago

Hi,

when calling /projects/1/setting I run into the following error:

Error: updateSetting.arg1.issueSetting.boardSpecs[0].editColumns: At least two columns need to be defined, updateSetting.arg1.issueSetting.boardSpecs[1].editColumns: At least two columns need to be defined

The relevant section of my post body reads:

    "boardSpecs": [
      {
        "name": "Development",
        "baseQuery": "\"Type\" is not \"Support Request\"",
        "backlogBaseQuery": "\"Type\" is not \"Support Request\" and (\"State\" is \"Open\" or \"State\" is \"In Progress\")",
        "identifyField": "State",
        "columns": [
          "Open",
          "In Progress",
          "In Review",
          "Closed"
        ],
        "iterationPrefix": null,
        "displayFields": [
          "State",
          "Type",
          "Priority",
          "Assignee",
          "Iteration",
          "Sub Type",
          "Due Date"
        ],
        "displayLinks": [
          "Child Issue",
          "Blocked By"
        ]
      },
      {
        "name": "Support Requests",
        "baseQuery": "\"Type\" is \"Support Request\"",
        "backlogBaseQuery": "\"Type\" is \"Support Request\" and (\"State\" is \"Open\" or \"State\" is \"In Progress\")",
        "identifyField": "State",
        "columns": [
          "Open",
          "In Progress",
          "Closed"
        ],
        "iterationPrefix": null,
        "displayFields": [
          "State",
          "Type",
          "Priority",
          "Assignee",
          "Iteration",
          "Sub Type",
          "Due Date"
        ],
        "displayLinks": [
          "Child Issue",
          "Blocked By"
        ]
      }
    ],

I set up the board in the web interface and also get the same data data by calling ~api/projects/1/setting (GET). It also seems to be what the API-documentation defines.

Expected outcome: my request should work or the API documentation and the getter-endpoint should be updated. :-)

Thanks!

Best regards, Sebastian

  • Robin Shen changed title 1 month ago
    Previous Value Current Value
    API: projects/1/setting throws
    API: projects/1/setting throws validation exception
  • Robin Shen changed title 1 month ago
    Previous Value Current Value
    API: projects/1/setting throws validation exception
    Validation error when update board spec via project settings api
  • OneDev commented 1 month ago

    State changed as code fixing the issue is committed (e2150b12)

  • OneDev changed state to 'Closed' 1 month ago
    Previous Value Current Value
    Open
    Closed
  • Sebastian commented 1 month ago

    Thanks! 😃

  • OneDev commented 1 month ago

    State changed as build OD-6816 (13.1.1) is successful

  • OneDev changed state to 'Released' 1 month ago
    Previous Value Current Value
    Closed
    Released
issue 1/1
Type
Bug
Priority
Normal
Assignee
Affected Versions
13.1.0
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-2610
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover