Forums

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

How to dynamically assign fix version based on query when issue transitions to different status

Václav Šrajer
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!
September 3, 2025

Hello,
I would like to add fixVersion to my Jira issues whenever they transition to the "Ready for Deployment" status. We have several releases with naming with format
yyyy-mm-dd-{suffix} and I would like to always find the last unreleased version with required suffix and assign it to the issue as its fixVersion. 
Issues have labels based on which I can decide which version should be selected.

I have looked into using smart values and even web request the API but it returns the list of all versions and I was not able to get the values I need out of it.

Could you please advice?

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 3, 2025

Hi @Václav Šrajer 

Welcome to the community.

An parameter option like query doesn't exist in the server/DC API.

See previous community post: Jira-REST-API-not-respecting-query-param-for-versions 

On Jira Cloud this can be done via the API, by provide additional parameters in you API call

See API doc; https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions/#api-rest-api-3-project-projectidorkey-version-get 

Suggest an answer

Log in or Sign up to answer