Skip to content

Parse error on item_name #71

@albcl

Description

@albcl
"errorMessage": "Parse error on \"\" (STRING)",

Both create_item and create_subitem have the same issue. If the item/subitem name contains double quotes, it will fail when parsing the string.

query = '''mutation
{
create_item (
board_id: %s,
group_id: "%s",
item_name: "%s",
column_values: %s,
create_labels_if_missing: %s
) {
id
}
}''' % (board_id, group_id, item_name, monday_json_stringify(column_values),
str(create_labels_if_missing).lower())

Momentarily I have fixed it by replacing any " on an item's name with single quotes ' but I can imagine confusing strings when the item makes use of single quotes on its name...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions