"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...
Both
create_itemandcreate_subitemhave the same issue. If the item/subitem name contains double quotes, it will fail when parsing the string.monday/monday/query_joins.py
Lines 14 to 27 in 2de9c46
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...