Hi all,
as part of our continous integration workflow (CCNet, nant) we are aiming at automatically releasing a version in Jira if that version is succesfully build. However, the released version may still have unresolved issues. Using the Jira-GUI to release a version will automatically prompt the user to move all unresolved isses to a new version and we are wondering if that is also possible using the rest-api. Releasing a version is easily done via rest, but:
Does the rest-api offer a way to move all unresolved issues of one version to another?
If not, is there a way to at least retrieve all unresolved issues of a version? AFAIK there is only a function to retrieve the unresolved issue count.
Thanks in advance for any hints!
Bob
Community moderators have prevented the ability to post new answers.
Jobin, thanks for hint.
However I did some poking and it seems there is an undocumented option to the REST modify version call named moveUnfixedIssuesTo which does the job. Here's an example using Curl:
curl -u username:password -H "Content-Type: application/json" -X PUT -d @json.txt http://jira/rest/api/latest/version/11111 with json.txt containing the string: {"id":"11111","userReleaseDate":"11/Oct/12","released":true,"expand":"operations","moveUnfixedIssuesTo":"22222"} 11111 is the {id} of the version to be released 22222 is the {id} of the version the unresolved issues are moved to
Works like a charm so far...
Awesome... :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 direct method using REST but you should be able to do it in a few mthods.
1. Get all unresolved issues in a version using search method by passing a JQL
2. Iterate on those and update the version to the new version using issue update.
3. Release the version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do U know how to Release a version? I mean the the whole Command
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi I trying to release a version via Rest but i am not able to do it can u help me with this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.