Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the latest affect version from the project

Suryakanta Kumari
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 12, 2024

I am working on defect clone automation for program variants for which affect version is mandatory field. Currently in JIRA sandbox affect version is available for only few programs but we need it for all the programs.

Need support in getting affect version for all the programs. 

1 answer

0 votes
Ignacio Aredez GenAI Expert
Banned
February 12, 2024

To get the latest affect version for all programs in JIRA Cloud and ensure it's available for defect clone automation, follow these streamlined steps:

Enable Versioning for All Programs:

Ensure version management is enabled in each project's settings under Project settings > Versions.
Verify Affect Version Field Configuration:

Check that the Affect Version field is added to the relevant screens for issue creation, editing, and viewing through Project settings > Issue types.
Automate Retrieval of Latest Affect Version:

Use the JIRA Cloud REST API to dynamically fetch the latest version for each program by calling GET /rest/api/3/project/{projectIdOrKey}/versions and selecting the most recent one based on release date or sequence.

Test Your Setup:

Test the updated automation in your JIRA sandbox to ensure the latest affect version is correctly applied for all programs.


This approach ensures that your defect clone automation always includes the mandatory latest affect version for any program.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events