Update Custom Field using SDK in c#

Hello new to the community. I am using the Atlassian SDK 13 and wanting to update a Custom Field. I have tried many different variation of the code but it does not seem to save/update.

Here is a simple example of what I am trying to do:

var ticketToUpdate = jiraclient.Issues.GetIssueAsync(updateticket).Result;
var cf = ticketToUpdate.CustomFields.Where(o => o.Id ==“customfield_11773”).FirstOrDefault();
cf.Values[0] = “Update Custom Field”;
jiraclient.Issues.UpdateIssueAsync(ticketToUpdate);

Any help would be greatly appreciated. Thanks

Welcome to the Atlassian developer community @GaryLeung,

I don’t have an answer to your question, but I have a comment about using that code:

@ibuchanan Thanks for the reply. Much appreciated.