Is there a way to move cards between lists, and possibly between boards?
Hi,
Unfortunately this is currently not supported.
However this is a good suggestion and we'll have to investigate if this functionality is available in the API.
Hi,
I have made procedure that calls right API function.
procedure TEpCustomTrello.MoveCardToList(ACard: TTrelloCard; AList: TTrelloList);
var
Url: string;
Resdat, Postdata: AnsiString;
Headers: TCoreCloudHeaders;
Jv: TJSONValue;
Jo: TJSONObject;
begin
Url := BASE_URL + '/cards/' + ACard.ID + '/idList?key=' + App.Key + '&token=' + Token_Access + '&value=' + AList.ID ;
HttpsPut(ExtractServer(Url), RemoveServer(Url), Headers, Postdata, Resdat);
if Resdat <> '' then
begin
Jv := TJSONObject.ParseJSONValue(string(Resdat));
if Assigned(Jv) and (Jv is TJSONObject) then
begin
try
Jo := Jv as TJSONObject;
ACard.DateLastActivity := IsoToDateTime(GetJSONProp(Jo, 'dateLastActivity'), False);
finally
Jv.Free;
end;
end;
end;
end;
Only thing that would be nice is to move card also inside TADVTrello.Borads to new List.
Best regards,
Rikardo