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
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.
I added a comma at the end of leadUserName line:
but it appears the same http 500 error.
Thanks and kind regards.
I'm assuming this issue is solved. please let me know if you have any problem.
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.
Thank you Deniz, I already solve the problem.
Kind regards.