Forums

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

How to extract first and last name from fixVersions

Sergei Gridnevskii
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.
December 15, 2021

I have a rule that clones an issue and I need to separate versions. For that I have to store first and last version names to variable.

 

How can I do this?

I tried 

{{issue.fixVersions}}{{name}}.substringBefore(",")
{{issue.fixVersions.name}}{{^last}}{{/}}

This does not work.

Any ideas?

1 answer

1 accepted

1 vote
Answer accepted
Sergei Gridnevskii
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.
December 15, 2021

OK, I managed it myself

 

{{issue.fixVersions.last.name}}

Bill Sheboy
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.
December 15, 2021

Hi @Sergei Gridnevskii 

I do not believe it is documented what order the values are returned in the fixVersions list, so first and last may not be what you want.

Please consider looking at the list functions to get the min/max by release date and then using list filtering to target the exact one you need.

Kind regards,
Bill

Sergei Gridnevskii
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.
December 17, 2021

Thanks. Bill. 

I had a task to separate tickets having exactly 2 fixVersions. 

If you are interested, we have 2 products that are intended for different markets. 90% of code is the same. If a bug is found, it is fixed in "common" part of the app, but we still need to test solution in both products for possible regression. As long as bug is ready for testing we need to separate it into 2 bugs (one for one product, another for another - 2 fixVersions) and assign QA team to both.

I tried to persuade QA team not to perform testing activities on developers issues, instead have their own project with own workflow, fields, screens, integrations, but they still prefer to overcomplify tasks.

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