I`m tring to create version posting post request on http://<jira_host>/rest/api/2/version with
{"name":"1.70.test", "project":"MIS", "released": true , "userReleaseDate": "23/May/2014"}
according to documentation I can use "released" flag. But created version is not marked as released. I`ve try both
"released": true
and
"released": "true"
Community moderators have prevented the ability to post new answers.
Creating a Version in JIRA via REST (POST) is really not working, see Link below But the Workaround mentioned by @Alex Kalish could be an option.
I'm not sure if this helps, but I ran into the exact same situation. I could POST to the REST API to create a new version. However, setting "released" to true never took. It would always end up as false in JIRA. However, if I edit the version with subsequent PUT I can successfully set the "released" flag to true .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vasily,
I just tried to execute a REST request as you described. It worked like a charm.
Please, could you check your rest URL? It seems that you missed 2 into your request (/rest/api/2/version instead of /rest/api/version)
Here my code :
jQuery.ajax({ type : 'POST', dataType : 'json', contentType : "application/json;", async : false, url : "http://MY_JIRA_URL/rest/api/2/version", data : JSON.stringify({ "name":"1.70.test", "project":"MIS", "released": true , "userReleaseDate": "23/May/2014" }), context : document.body, success : function(data) { returnData = data; } });
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hope this helps,
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, I write uri in question wrong. I fix it in question. I use 2 api version
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So if I have an API that sets the Released flag to true, why does it still come up in an API JQL query for
fixVersion in unreleasedVersions() AND status not in (Closed,Done) ORDER BY fixVersion ASC
?
But if I use that same query in JIRA (not API, th eGUI), it works, it won't find that release. Any idea?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Vasily,
please, could you check if your remote API call is enabled? JIRA Administration -> General Configuration -> Accept remote API calls (ON)
Hope this helps,
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It`s enabled. This request create version with all parameters except "released"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please, could you provide more information about the error message?
Regards,
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is no error message. After I call rest service I can see my version created. Its name is "1.70.test" with correct release date. But it is not "released".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.