{"record":{"id":"ea76f7315b5f41a7","repo":"gitlabhq/gitlabhq","slug":"at-least-one-of-the-arguments-fromlistid-tolistid","errorCode":null,"errorMessage":"At least one of the arguments fromListId, toListId, positionInList, moveAfterId, or moveBeforeId is required","messagePattern":"At least one of the arguments fromListId, toListId, positionInList, moveAfterId, or moveBeforeId is required","errorType":"exception","errorClass":"Gitlab::Graphql::Errors::ArgumentError","httpStatus":null,"severity":"error","filePath":"app/graphql/mutations/boards/issues/issue_move_list.rb","lineNumber":48,"sourceCode":"          required: false,\n          description: 'ID of the board list that the issue will be moved to.'\n\n        argument :move_before_id, IssueID,\n          required: false,\n          description: 'ID of issue that should be placed before the current issue.'\n\n        argument :move_after_id, IssueID,\n          required: false,\n          description: 'ID of issue that should be placed after the current issue.'\n\n        argument :position_in_list, GraphQL::Types::Int,\n          required: false,\n          description: \"Position of issue within the board list. Positions start at 0. \" \\\n            \"Use #{::Boards::Issues::MoveService::LIST_END_POSITION} to move to the end of the list.\"\n\n        def ready?(**args)\n          if move_arguments(args).blank?\n            raise Gitlab::Graphql::Errors::ArgumentError,\n              'At least one of the arguments ' \\\n                'fromListId, toListId, positionInList, moveAfterId, or moveBeforeId is required'\n          end\n\n          if move_list_arguments(args).one?\n            raise Gitlab::Graphql::Errors::ArgumentError,\n              'Both fromListId and toListId must be present'\n          end\n\n          if args[:position_in_list].present?\n            if move_list_arguments(args).empty?\n              raise Gitlab::Graphql::Errors::ArgumentError,\n                'Both fromListId and toListId are required when positionInList is given'\n            end\n\n            if args[:move_before_id].present? || args[:move_after_id].present?\n              raise Gitlab::Graphql::Errors::ArgumentError,\n                'positionInList is mutually exclusive with any of moveBeforeId or moveAfterId'","sourceCodeStart":30,"sourceCodeEnd":66,"githubUrl":"https://github.com/gitlabhq/gitlabhq/blob/55ee20384a1f55cb0e362dee1d07149613b1b9bf/app/graphql/mutations/boards/issues/issue_move_list.rb#L30-L66","documentation":"Error \"At least one of the arguments fromListId, toListId, positionInList, moveAfterId, or moveBeforeId is required\" thrown in gitlabhq/gitlabhq.","triggerScenarios":"Thrown at app/graphql/mutations/boards/issues/issue_move_list.rb:48 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"55ee20384a1f55cb0e362dee1d07149613b1b9bf","analyzedAt":"2026-08-21T14:22:27.782Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}