Dependency

The Dependency column allows you to set up items as dependant on a different item in the same board. This can be then represented in the Gantt View or Widget visually, or used in combination with automations.

Check out our help center to learn more about the column: The Dependency Column

You can update a Dependency column with a JSON string. Simple string updates are not supported.

JSON

To add a dependant on item to the Dependency column, send the item IDs as an array. If the items sent do not belong to the board(s) that are connected, an exception will be raised.

Code example

mutation {
  change_multiple_column_values (item_id:1587277166, board_id:1587277136, column_values: "{\"dependent_on\" : {\"item_ids\" : [1587277166]}}") {
    id
  }
}
fetch ("https://api.monday.com/v2", {
  method: 'post',
  headers: {
    'Content-Type': 'application/json',
    'Authorization' : 'YOUR_API_KEY'
  },
  body: JSON.stringify({
    'query' : "mutation ($myBoardId:Int!, $myItemId:Int!, $myColumnValues:JSON!) { change_multiple_column_values(item_id:$myItemId, board_id:$myBoardId, column_values: $myColumnValues) { id } }",
    'variables' : JSON.stringify({
      myBoardId: YOUR_BOARD_ID,
      myItemId: YOUR_ITEM_ID,
      myColumnValues: "{\"dependent_on\" : {\"item_ids\" : [1587277166]}}
    })
  })
})
curl "https://api.monday.com/v2" \
-X POST \
-H "Content-Type:application/json" \
-H "Authorization:MY_API_KEY" \
-d '{"query":"mutation{change_multiple_column_values(item_id:162169283, board_id:162169280, column_values:\"{\\\"dependent_on\\\" : {\\\"item_ids\\\" : [1587277166]}} \" ){name}}"}'

Did this page help you?