I am trying to create a simple app in C# for doing some calculations over data that are not possible using web interface. I was using C# restapi project and all was fine but that one is not maintained for years.
I downloaded Atlassian .NET SDK but there is no documentation and I cannot figure out how to execute a regular JQL query (not LINQ) or how to use > or < operators in LINQ (e.g. timetracking.RemainingEstimate>10)
Any help will be highly appreciated
Hi,
i use Atlassian.Net SDK 10.6.0 with Visual Studio and can connect to JIRA and execute jql queries as follow:
Jira jira = Jira.CreateRestClient(host, user, password);
var jqlQuery = "project=" + projectId+ " AND summary~\"" + new LiteralMatch("JIRA Issue summary 1") + "\""
var issueList = await jira.Issues.GetIssuesFromJqlAsync(jqlQuery);
you can compare the RemainingEstimate in JQL as usual in JIRA or using LINQ:
var remainingIssue = issuetList.All(x => int.Parse(x.TimeTrackingData.RemainingEstimate) > 10);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.