I'm using the API to create new Sprint cards (so I can add some intelligence to the initialization of the description which is fairly complex). I'd like to automatically add the cards I'm creating to my Planning tree (because the next step is to add children in that tree, and adding a card to a tree is a pretty painful and confusing operation).
I'm able to create, get the ID of, and update the card, but when I include a parameter like this:
'card[cp_planning___sprint_card_id]' => $cardId
in my update PUT I get a 500 error and a log message like this:
Uncaught exception:
Property Planning:Sprint is not applicable for card type Sprint
Which is true. So what can I set to add the card to the tree (without giving it a parent or child in that tree)?
Comments
2 comments
Dan
Currently the API doesn't support adding cards to the tree root. We have this feature in our backlog for prioritising.
In the meantime one workaround we suggest is to add an extra card type to the tree as a fake "root" and adding all your cards to that.
- Suzie
Found a workaround for this problem: Attach the card to a parent known to exist, then detach from that parent - i.e. in my case set cp_planning___release_card_id to the parent card ID, then to NULL in a second API call. This leaves the card in the tree with no connections.
Please sign in to leave a comment.