How to Copy Value a String from Description Field into Affects Version Field Via JIRA Automation

kashifsaleem November 8, 2024

I would like to create an automation that will copy the app version number from the description field and paste it into affected version field. Attached screenshots shows what the format of the app version number can look like:

 

Screenshot 2024-11-08 at 17.29.01.png

Screenshot 2024-11-08 at 17.30.27.png

 

Any thoughts on how to do this?

1 answer

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 8, 2024

Hello @kashifsaleem 

Welcome to the Atlassian community.

Is the content of the Description field formatted in a consistent manner so that you can identify which piece of test is the app version number? Does it have some sort of label preceding it, and a new line or consistent text following it?

Has a release Version already been created for the app version numbers that may appear in the Description field?

What if a number is provided that doesn't match an existing version?

kashifsaleem November 8, 2024

Hi @Trudy Claspill thanks for replying so quickly.

  1. Yes, the description field is formatted in a consistent manner. In fact, as you see it in the screenshots i provided
  2. So you might be able to see from the screenshots that the information is generated in a table, which is in the description field. The app version number will always be in the second column labelled value, always in the fifth row, always preceded by the words App Version in the first column and in the same cell always followed by the build number (see additional screenshot as example)
  3. Yes, release versions have been created for the affects version field. So, you will never get a number that doesn't match an existing version

Screenshot 2024-11-09 at 08.53.13.png

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 10, 2024

Hello @kashifsaleem 

You can use the substringBetween() function to extract the version information from the Description field:

{{issue.description.substringBetween("Version|","|")}}

If you want to overwrite all other values that might already be in the field, then you can set that field directly to that smart value in an Edit Issue action.

fixversion.png

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