techtalk / JiraRestClient

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

Get custom fields in GetIssuesByQuery #43

Closed heymanitsmematt closed 7 years ago

heymanitsmematt commented 7 years ago

Is there a way to get custom fields? It seems like the properties exposed in TIssueFields are basically what you get when interacting with an Issue.fields object. Are there any plans to incorporate custom fields? Maybe allow users to hardcode them? I cloned a copy of master and hard coded my own project's custom fields for a Netsuite integration, but this option is less than ideal when users could simply push an array of custom fields to populate.

Anastasius80 commented 7 years ago

I used it hardcoded, but it works perfekt:

    [DeserializeAs(Name = "customfield_10502")]
    public int SerialNumber { get; set; }
quexy commented 7 years ago

Just extend IssueFields and use JiraClient with that type, like @Anastasius80 suggested.