After creating an automation that gets latest released version number, merges all minor jira releases into a major and releasing the major version, i left with the minor versions unreleased and with no tickets in.
So am looking for a way to auto delete these minor versions. Reading in the community, i noticed the best workaround is with REST API via webhook - get all versions and then run over the results, extract the version i need by name and get their id for another rest api delete step. Anyone has better approch?
Thank you.
First thing: how is your team using the "minor version" releases? That is, are they:
Considering these may give you other ideas how to use the "minor versions".
For now, let's assume it is #1 and they are just holding buckets in Jira and not for release. In that case, calling the REST API with the Send Web Request action would be needed as there is no "delete version" rule action.
The REST API endpoint to Delete Version has been deprecated, and replaced with Delete and Replace Version. With that one, your rule could combine the operations by:
Here is a how-to article for calling a REST API endpoint from a rule: https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828
And here is the new Delete and Replace Version endpoint: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions/#api-rest-api-3-version-id-removeandswap-post
And here is a how-to article to determine the correct custom field ids needed for the above call: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.