I'm developing .NET application using c#.
I have connected to JIRA via Atlassian SDK.
When I write such query:
var issues = from i in jira.Issues.Queryable
where i.Type == "Incident" &&
i.Project == "My Project"
&& i.Status == "Done"
&& (i.Priority == "Blocker" || i.Priority == "Critical" || i.Priority == "High")
orderby i.Created
select i;
foreach (var issue in issues)
{
issue.Downtime <<------ need to get downtime here
}
Solution:
var downtime = issue.CustomFields.Where(f =>f.Name=="Downtime (Minutes)").FirstOrDefault();
result = result + issue.Key + "\t" + issue.Summary + "\t" + issue.Status + $" Downtime(minutes):{downtime?.Values[0]}"+"\n\r";
Looks like it's a custom field...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.