ITPLT-4583 first pass at marketplace v3 API changes

This commit is contained in:
Lee Goolsbee
2025-11-03 13:14:41 -06:00
parent 12bcf511b9
commit 935edbc9d1
7 changed files with 19 additions and 25 deletions

View File

@@ -2,8 +2,8 @@
- name: Fetch the latest version from URL
ansible.builtin.set_fact:
atl_product_version_json: "{{ lookup('url', 'https://marketplace.atlassian.com/rest/2/products/key/jira-software/versions') }}"
atl_product_version_json: "{{ lookup('url', '{{ atl_mpac_api_base_url }}/parent-software/jira/versions?state=ACTIVE&limit=1') }}"
- name: Set the local var to retrieved version
ansible.builtin.set_fact:
atl_latest_version: "{{ atl_product_version_json._embedded.versions[0].name }}"
atl_latest_version: "{{ atl_product_version_json.versions[0].versionNumber }}"