Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is createmeta rest endpoint mandatory to get project list from jira?

System Admin May 7, 2021

We try to get project from jira using PostMan with basic authentication.

But we can not get any response.

 

So, we firstly sent /createmeta endpoint, then sent /project endpoint.

 

1 - http://<jira>/rest/api/2/issue/createmeta 

2 -  http://<jira>/rest/api/2/project

 

And We get project list.  But, we didnt understand, why first api is mandatory to get project list.

 

We want to connect live access on jira, so this problem is blocked us.

 

Please, help to us.

 

 

 

1 answer

1 accepted

1 vote
Answer accepted
Thomas Deiler
Community Champion
May 8, 2021

Dear @System Admin ,

welcome to the community.

You do not need to call GET /rest/api/2/issue/createmeta (btw. its deprecated) to use the GET /rest/api/2/project.

Please note, that the GET /rest/api/2/project executed with admin rights shows only projects, that the admin can browse.

Returns all projects which are visible for the currently logged in user.

Please try again with a REST API browser extension. Eventually you need to set the User-Agent:x HTTP header to avoid cross site scripting warnings.

You can also try with a non admin user to see the difference.

So long

Thomas

System Admin May 9, 2021

Thanks Thomas.

System Admin May 10, 2021

Hi Thomas,

 

Is createmeta endpoint related to dark feature configuration? We try again, but

we didnt get project list without createmeta endpoint. 

 

using Postman,  get /project endpoint, we got Gateway timeout error. We didnt get.

 

Then, we try.

1 - http://<jira>/rest/api/2/issue/createmeta 

2 -  http://<jira>/rest/api/2/project

 

We get projects. 

 

We searched configurations and we found a config, but we didnt configure and didnt test. 

Can this configuration possible solution for this problem?

"com.attlasian.jira.issue.dark.feature.createmeta.disable"

 

 

Thanks

Thomas Deiler
Community Champion
May 10, 2021

Can you please try, like I suggested, the same with a browser extension? And did you call the REST from browser directly in another tab while you already access Jira? Does this work?

http://<jira>/rest/api/2/project

So long

Thomas

System Admin May 11, 2021

Thanks Thomas,

 

We try on different jira servers( cloud, 8.5.1, 8.5.3, 8.5.4).  We get project list using  /project endpoint for (cloud, 8.5.1)

But  we use createmeta endpoint for 8.5.3,8.54 versioned jira servers. If we get error(404 or empty response) using createmeta endpoint, we sent second request using /project endpoint, and fixed problem.

 

As a result,  problem is continue but this problem doesnot block now to us . (another company has this versions : v 8.5.3, v8.54 , so we couldnt fix problem or change any configuration)

We think this problem is related a configuration on jira. Now, we decide to ignore it

 

Thank you for all answers.

felix.weber
Contributor
May 20, 2021

@Thomas Deiler you stated  "GET /rest/api/2/issue/createmeta (btw. its deprecated) " - just wanna be sure it is only deprecated for Jira server ?

For Cloud it will be 

GET /rest/api/3/issue/createmeta

according to https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-createmeta-get

=> meanwhile found confirmation it has been deprecated for Server only! 

 

just asking as I am struggling with its response using postman  

Thomas Deiler
Community Champion
May 20, 2021

Dear @felix.weber ,

according to both API documentations, createmeta is deprecated only on server.

So long

Thomas

Like felix.weber likes this

Suggest an answer

Log in or Sign up to answer