Skip to main content

I am creating webhook using python for sending notification whenever status changes to “Stuck”


I am using event:- change_status_column_value


I need to use config param as well below is my query formate can some one suggest the columnValue for status as stuck


mutation {

create_webhook (board_id: 111111111, url: “https://test/status”,

event: change_status_column_value,

config: “{"columnId":"project_status", "columnValue":{"$any$":"stuck"}}”

) {

id

board_id

config

}

}


please suggest the value for columnValue key

Hello there @Muskanpath and welcome to the community!


I hope you like it here 💪


You can use the index for this. Assuming your “Stuck” label has index 2, you would use something like this:


mutation {
create_webhook(
board_id: 1234567890
url: "https://myendpoint.com/webhook"
event: change_status_column_value
config: "{\\"columnId\\":\\"status\\", \\"columnValue\\":{\\"index\\" : \\"2\\"}}"
) {
id
board_id
config
}
}

You can check your index with a query like this one:


{
boards(ids: 1234567890) {
columns(ids: "status") {
settings_str
}
}
}

Cheers,

Matias


Just an FYI this is missing from the documentation, in fact, the change_status_column_value isn’t even listed as one of the ones which accepts a “config” value.


monday API docs

Thank you @anon29275264 for bringing this to our attention!


I have sent this to the team 😁


Reply