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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • 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

Jira Cloud trial version REST API issue

Hi,

I'm using Jira cloud trial version, Jira client library https://mvnrepository.com/artifact/com.atlassian.jira/jira-rest-java-client-api?repo=atlassian-public.

I generated token in my Jira cloud and authenticated successfully with java JiraRestClient:

JiraRestClient restClient = factory.createWithBasicHttpAuthentication("https://myname.atlassian.net", "username", generated_token);

ProjectRestClient projectClient = restClient.getProjectClient();
Promise<Iterable<BasicProject>> projectsResult = projectClient.getAllProjects();
Iterable<BasicProject> projects = projectsResult.claim();

I got empty list of the projects, but I created them and added my user to this projects. Also I added to my user all permissions.

The same code works fine on the server non trial version of Jira.

What I did wrong?

Thanks in advance!

 

 

 

1 answer

0 votes

Hi @maxtazov ,

On Jira Cloud, the old endpoint to get the list of projects was deprecated.  Check out the Jira Cloud API documentation at "GET /rest/api/3/project" for details on the endpoint deprication.

As noted:

Deprecated, use Get projects paginated that supports search and pagination.

So you will want to look at the new endpoint that has extended search pagination capabilities here:

Regards,
Earl

Suggest an answer

Log in or Sign up to answer
TAGS

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