I need to retrieve the value in the timeestimate and timeoriginalestimate fields. It looks like the field itself is a JsonlElement.ValueKind = Number
My code is as follows:
string issueTime = !string.IsNullOrEmpty((string) singleIssue.fields.timeoriginalestimate)? (string)singleIssue.fields.timeoriginalestimate.ToString():"NULL";
[Note: I know I am casting the result to a string, this is only for testing to see if it would work]
When there is no value (i.e. null) the code passes, but as soon as there is a value in the ValueKind it throws an error.
Can anyone help me to pull the value out of the field?