Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to validate if the connection is ok using / C# Edited

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("", "username", "password");

var jiraissues = from i in jira.Issues.Queryable
                                  select i;


2 answers

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 


string url = "";
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 :(


I am getting the same issue. How have you solved it?

Thank in advanced.


I found the issue. for anyone running into this problem, the password should be a token.

Generate the token here :

And then passed it the function like:


var jira = Jira.CreateRestClient(url, username, Token, settings);

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you