JetBrains / YouTrackSharp

.NET Standard 2.0 Library to access YouTrack API.
https://www.jetbrains.com/youtrack
Apache License 2.0
134 stars 105 forks source link

SetField value doesn't update the actual value. #122

Open Dronissim0 opened 1 year ago

Dronissim0 commented 1 year ago

Expected behavior

calling Issue.SetField("FieldName", "FieldValue") change the issue field.

Actual behavior

calling Issue.SetField("FieldName", "FieldValue") doesn't change the issue field

Steps to reproduce the behavior

//string request is my valid request string var task = await service.GetIssues(request).ConfigureAwait(continueOnCapturedContext: false); var issue = task.Result.First(); issue.SetField("State", "Test"); issue.SetField("Product Value", "Nice to Have");

// var filed = issue.GetField("State"); // return right value for specified fields, but actually I am not able to see these changed on YouTrack board, I am using YouTrack //admin user for connection.

Dronissim0 commented 1 year ago

Update:

I didn't find a way to fix that problem via SetFields, but I have found a workaround via
service.ApplyCommand(issue.Id, "State Test");