Forums

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

Copy Text from Summary into Custom field

Russell Dersley February 1, 2023

Hi,

 

We are receiving tickets from a customer that has their own ticket reference in the Summary 

i.e 

CINC0001473/ Wrong sales amount or FW: Incident Case CINC0001373 has been assigned

 

What we would like to do is copy the whole CINC number into a custom field using the Automation rules 

 

I have this curerntly {{issue.summary.match("CINC(\d+).*")}} but it's only copying the numbers after the prefix

 

Anyone have any suggestions?

Thanks

 

1 answer

1 accepted

2 votes
Answer accepted
Mark Segall
Community Champion
February 1, 2023

Hi @Russell Dersley - Perhaps try this instead?

{{issue.summary.match("(CINC*.\d+)")}}
Russell Dersley March 3, 2023

Thanks that worked well for us

Like Mark Segall likes this

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