Not all CustomFields related to my Issues are downloaded using Atlassian.Jira SDK .NET

csctaito November 2, 2017

Hi there!

I am using the Atlassian.Jira SDK with .NET and have the code below.

However, not all the custom fields associated with my Jira issues appears in the CustomFields collection?

Is there something I need to configure in Jira for each particular Custom Field, so they will come through?

_jira = Jira.CreateRestClient([Jira URL], txtUser.Text, txtPass.Text);

...

var result = (await _jira.Issues.GetIssuesFromJqlAsync("project = \"blah blah\" AND fixVersion = " + version, 100)).ToList();

foreach (var r in result)
{

var customFields = r.CustomFields;

}

 

1 answer

0 votes
AshishUpadhyay September 5, 2018
_jira = Jira.CreateRestClient([Jira URL], txtUser.Text, txtPass.Text);

...

var resultAwaiter = (await _jira.Fields.GetCustomFieldsAsync();
resultAwaiter.Wait();
var result = resultAwaiter.Result;

foreach (var r in result)
{

var customFields = r;

}

I tried the above code and got all the custom fields.

Suggest an answer

Log in or Sign up to answer