I installed Atlassian.NET (10.5.0). I have a few questions.
When the URL has the https, it throws me an error, so i'm using http
- How to validate that the connection is ok?
- When run the LINQ query, always returns 0, how come?
I'm including my code here:
var jira = Jira.CreateRestClient("http://xxx.atlassian.net", "username", "password");
var jiraissues = from i in jira.Issues.Queryable
select i;
Console.WriteLine(jiraissues.Count());
Hello,
I am getting the same issue. How have you solved it?
Thank in advanced.
Hello,
I found the issue. for anyone running into this problem, the password should be a token.
Generate the token here :
https://id.atlassian.com/manage/api-tokens
And then passed it the function like:
var jira = Jira.CreateRestClient(url, username, Token, settings);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does anyone has an answer ? I'm new on this and even when I'm not getting any error, it always returns 0 values, no matters if it is an Project List, Issues Types or Issues in general. I checked my credentials and all seems to be ok
URGENT
string url = "http://xxx.atlassian.net";
string username = "myLoginID";
string password = "myPassword";
var settings = new JiraRestClientSettings()
{
EnableRequestTrace = true
};
var jira = Jira.CreateRestClient(url, username, password, settings);
var jiraprojects = jira.Projects.GetProjectsAsync().Result;
foreach (var project in jiraprojects) //jiraprojects count is always 0 :(
{
Console.WriteLine(project.Name);
Console.WriteLine(project.Key);
Console.WriteLine(project.Id);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.