Hello,
I’m using the duplicate_item
mutation of the API with Python to duplicate an item on a board. This is my simple code:
def duplicate_item(board_id: str, item_id: int):
query = '''
mutation {
duplicate_item (
board_id: %s,
item_id: %s
) {
id
}
}
''' % (board_id, item_id)
response = requests.post(url=MONDAY_URL, json={'query': query}, headers=monday_headers)
This works well.
However, the item has a status column and 2 people columns.
The status column and 1 people column have a default value (that I set on the default view) and the other people column hasn’t a default value.
When duplicating the item, the status is set to the default value and both people columns are empty.
How can I keep all the values (including status and people columns values) of the item when duplicating it?
I’d be happy to get your help!
Antoine