Forums

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

Get an issues versions by name via rest API

Rees_ Ian
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.
February 7, 2024

I have a manual automation that when I trigger on an issue I want it to do something with the fixversions that the issue is part of.  But from the issue properties I only have the {{issue.fixVersion.name}} but the rest api GET method /rest/api/3/version/{id} takes the version id as the parameter.  How can I get the properties for an issues versions when I only have the fixversion name.

 

1 answer

1 accepted

0 votes
Answer accepted
Kalyan Sattaluri
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.
February 7, 2024

You do have access to id using {{issue.fixVersion.id}} , you can pass that in your API call

Rees_ Ian
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.
June 7, 2024

Thank you - is actually  {{issue.fixVersions.id}} 

Suggest an answer

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

Atlassian Community Events