Skip to content

Commit

Permalink
Version 1.11.4 (AddChecklistItemAsync)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjdk committed Nov 25, 2024
1 parent 30f4a43 commit 2d5a71a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Changelog
*Below is the version history of [TrelloDotNet](https://github.com/rwjdk/TrelloDotNet) (An wrapper of the Trello API)*

## 1.11.4 (25th of November 2024)
#### TrelloClient
- Added [AddChecklistItemAsync](https://github.com/rwjdk/TrelloDotNet/wiki/AddChecklistItemAsync)

<hr/>

## 1.11.3 (3rd of November 2024)
#### TrelloClient
- Added [GetAttachmentOnCardAsync](https://github.com/rwjdk/TrelloDotNet/wiki/GetAttachmentOnCardAsync)
Expand Down
12 changes: 12 additions & 0 deletions src/TrelloDotNet/TrelloClient.Checklists.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ public async Task<Checklist> AddChecklistAsync(string cardId, Checklist checklis
return newChecklist;
}

/// <summary>
/// Add a new Checklist item to an existing Checklist
/// </summary>
/// <param name="checklistId">Checklist Id</param>
/// <param name="checkItemToAdd">New Checklist Item</param>
/// <param name="cancellationToken">CancellationToken</param>
/// <returns>The new Checklist Item</returns>
public async Task<ChecklistItem> AddChecklistItemAsync(string checklistId, ChecklistItem checkItemToAdd, CancellationToken cancellationToken = default)
{
return await _apiRequestController.Post<ChecklistItem>($"{UrlPaths.Checklists}/{checklistId}/{UrlPaths.CheckItems}", cancellationToken, _queryParametersBuilder.GetViaQueryParameterAttributes(checkItemToAdd));
}

internal async Task AddCheckItemsAsync(Checklist existingChecklist, params ChecklistItem[] checkItemsToAdd)
{
foreach (var checkItemParameters in checkItemsToAdd.Select(item =>
Expand Down
2 changes: 1 addition & 1 deletion src/TrelloDotNet/TrelloDotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageProjectUrl>https://github.com/rwjdk/TrelloDotNet/wiki</PackageProjectUrl>
<PackageIcon>trello.png</PackageIcon>
<PackageTags>trello api rest .NET dotNet crud wrapper webhook automation</PackageTags>
<Version>1.11.3</Version>
<Version>1.11.4</Version>
<Company>RWJDK</Company>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
Expand Down

0 comments on commit 2d5a71a

Please sign in to comment.