Where is documentaion for Atlassian .NET SDK?

P_ October 24, 2018

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

1 answer

0 votes
User Google July 9, 2019

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);

Suggest an answer

Log in or Sign up to answer