I can't create versions through the api

Description

Hello,

From the add-on settings I defined a project role as configuration management role.

From the graphical interface I can create versions and components, but from the jira api it returns the following error:

"Project with key 'STTEST' either does not exist or you do not have permission to create versions in it."

When I make the request to jiraurl.com/rest/api/2/version

How can I create versions through the api.

Kind regards

Environment

None

Activity

Show:
Daniel Muñoz
September 25, 2019, 9:40 AM

Thank you Deniz, I already solve the problem.

Kind regards.

Deniz Oğuz
September 25, 2019, 9:27 AM

It may be a 500 error but content may be different. remove the line "leadUserName: "undefined" from your request. You are using an older version of the add-on request format may be a little different. Please check error log. You can also check how UI will send the request by inspecting it through network tab.

Deniz Oğuz
September 25, 2019, 9:23 AM

I'm assuming this issue is solved. please let me know if you have any problem.

Daniel Muñoz
September 25, 2019, 9:03 AM

I added a comma at the end of leadUserName line:

but it appears the same http 500 error.

Thanks and kind regards.

Deniz Oğuz
September 25, 2019, 8:13 AM

You have forgotten a "," at the end of leadUserName line.
Sorry for missing documentation. Unfortunately most up to date documentation of our API is development tool of browser. Our UI also uses the Rest API so you can see how UI do something by inspecting request in the browser's network tab.

Answered

Assignee

Deniz Oğuz

Reporter

Daniel Muñoz

Labels

None

Source

None

Jira Version

Database Type/Version

None

Browser Type/Version

Chrome Version 77.0.3865.90

Affects versions

Priority

Major