Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Projects are not being returned by a REST API call to createmeta

A client has setup an application link for JIRA 5.2.7 and they have adminstrator privileges. When the a call is made to createmeta no projects are returned. The request body returns


'expand' => 'projects',

'projects' => array(),


Call is:

$this->client->setHeaders('Content-Type: application/json');

where $this->host is the host of the JIRA server. Note: this works for all other JIRA downloads and on-demand servers of other clients.

However, the client sent me a screenshot showing the projects that the user has access to.

I've not run across this problem with JIRA 6.0. What are the possible reasons that this could be happening?

<input id="mac_address" type="hidden" value=""/>

<input id="mac_address" type="hidden" value=""/>

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted

By serendipity I found the answer.

In order for the projects to show in the API return, the user needs to have the permission "Browse Projects" and the "Create Issues" permission set for each of the projects they should have access to. Being an administrator of a project doesn't automatically grant that permission instead it is often inherited from another role e.g. "Users".

But wait that is not all! Jira 5.2 comes with a wonderful undocumented bug/feature when doing oauth just for fun! Jira 5.2 requires the use of query parameters for the oauth parameters instead of using POST parameters (which 6+ accepts).

This is componded in that /createmeta API call returns a 200 and empty array of projects when a user is not authenticated instead of a much, much more sensible 401 status code.

Additionally, I think there may be other problems with the JIRA oauth implementation in 5.2 since it seemed to allow the continuation of the oauth flow despite the requesting of the token failing (i.e. both a request token and access token was received even though they never worked).

I've added the rest call to the original question.

<input id="mac_address" type="hidden" value=""/>

Please provide the complete REST call.

Community showcase
Published in Agile

WIP? WIP! Or how to decrease time to market using Jira

Introduction In this article, I will outline why focusing on time to market is essential for software development companies. I will focus primarily on Kanban and limiting work in progress (WIP) as ...

65 views 1 5
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