Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to extract first and last name from fixVersions

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

OK, I managed it myself

 

{{issue.fixVersions.last.name}}

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

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
Site Admin
TAGS
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

373 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you