Forums

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

Trying to copy 4 digits from fixversion to a custom field

Ihsen Ben Maatoug December 19, 2023

Hello,

I am trying to automate (using automation) the copying only 4 digits from fixversion field to a custom field.

the conf I set:

{{issue.fixversion.substring(1,2,3,4)}}

but unfortunately the custom field still empty even the rule run successfully.

Thanks

2 answers

0 votes
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 19, 2023

Hi @Ihsen Ben Maatoug 

The smart value for that field is {{issue.fixVersions}} (please note it is plural): https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--issue.fixVersions--

Next, that is the incorrect syntax for the substring function: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#substring-int-start-

Finally, the Fix Version field can contain multiple values.  Do your issues ever have multiple versions selected?  If so, your rule need to handle that case.

Kind regards,
Bill

0 votes
Ihsen Ben Maatoug December 19, 2023

ji.PNG

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events