techtalk / JiraRestClient

A simple client for Atlassian JIRA service REST API
Other
65 stars 80 forks source link

Reading custom fields #37

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi,

is reading custom fields a supported feature? If not, are there any plans for it?

Best regards

quexy commented 8 years ago

already supported; see: https://gist.github.com/quexy/9183880

ghost commented 8 years ago

Am I missing something? The gist shows how to write custom fields, but I don't see reading custom fields.

quexy commented 8 years ago

Yes, you are. Reading fields is analogous. If you can write a custom field customfield_10010 through JiraClient<MyIssueFields>, then, I'd suspect, you could surely read the same field.

In the terminology of the gist:

var issueY = clientX.LoadIssue(issue);
System.Diagnostics.Assert(issueX.customfield_10010 == issueY.customfield_10010, "Oops...");