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 do I query a list of projects via Atlassin SDK in C#? Edited

Hi.


I am trying to use Atlassin.SDK 10.7.1 against our on prem server with version 7.11.1, and as the first step, I am trying to get a list of the projects.

the local address of Jira is http://jira/

the code:

[Test]
public async Task CanGetProject()
{
    Jira jira = Jira.CreateRestClient("http://jira", _userName, _password);
    IEnumerable<Project> projects = await jira.Projects.GetProjectsAsync();
    Assert.IsTrue(projects.Any());
}

The problem is that I get 404 back:

404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

It looks like I do not get to the point of authentication, so it does not fin the right address to start from.

Information about Jira:

Jira v7.11.1
JIRA Agile v7.11.0-DAILY20180712063948

Any ideas on how to fix this?

Thanks!

 

1 answer

1 accepted

0 votes
Answer accepted

I figured out that in the address, I had to specify the port and one more parameter after slash, so instead of

"http://jira"

In my case, I need to have:

"http://jira:8080/company"

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

The add-in you’ve been waiting for: Jira Cloud for Excel 🙌

Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...

933 views 8 25
Read article

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