Skip to main content

Hi,


Wondering if there is a way of altering the columns within a subitem via the API. What I would really like to do is create a subitem thru the API with the column names/types of my choosing instead of the default 3 columns, but I’d be happy enough right now being able to create the subitem, and then add or delete columns within the subitem to get it how I want it. Thanks.

hi @Msh


Did not tested it myself (yet) but I would say:



  • create a subitem through


mutation {
create_subitem (parent_item_id: 1234567, item_name: "new subitem") {
id
board {
id
}
}
}

Now you have the itemId and the boardId of the subitem returned and you can:



  • create a column within the boardId returned


mutation {
create_column (board_id: 1234567, title: "Work Status", column_type: status) {
id
}
}

where board_id is the value returned by the create_subitem call.


Let us know if this works out (so I do not have to test myself 🙂)


I thought that I tried creating columns on the subitem board before, but this time it worked 🙂 Thanks.


Need to remember to refresh the browser after creating these columns, they don’t show up automatically.


Reply