Forums

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

How to automatically copy field values

ChangSoo Yoon July 12, 2023

1. I have a field A of the form Date(yyyy-mm-dd)
2. When an issue is created, copy field A value in YYYY-MM format
3. Enter in text field B, in YYYY-MM format

Is it possible?

Ex)
A(DATE Field) : 2023-05-30 ==== when create issue ====> B(text field):2023-05

1 answer

1 accepted

1 vote
Answer accepted
Evgenii
Community Champion
July 12, 2023

Hi, @ChangSoo Yoon 

Yes, it's possible. You'll need to use regexp. Something like this:

{{issue.description.replaceAll("(\d{4})\/(\d{1,2})\/(\d{1,2})", "$3/$2/$1")}}

Screenshot_20.jpg

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