Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 copy some part of description to other customfield

The tickets are getting created from mail handler and there will be some data in the description, instead of all the data we wanted to copy only email address present in the description to other custom field.description.PNG

2 answers

2 accepted

1 vote
Answer accepted

You can indeed achieve this using our JMWE app's Set Field Value post-function on the Create transition.

For that, you need to set "value type" to "Groovy Expression" and use a regular expression to extract the email address from the description. Something like:

def match = issue.get("description") =~ /(?mi)Email: (.+)/
match.groupCount() ? match[0][1] : null

Thanks David, It is working for me

0 votes
Answer accepted
Ivan Lima Community Leader Feb 17, 2021

Hi @Janaki_R, you definitely need an app to achieve that. I've done something similar using ScriptRunner, but I'm sure you can find other apps that can help you as well. It depends on your experience with scripts and how variable your template description string can be. That said, which app are you currently using?

We have script runner and JMWE addon, tried with automation also but I am missing something where unable to achieve the exact output 

Ivan Lima Community Leader Feb 18, 2021

Well, I'd say you're well equipped. You can give it a try based on David's suggestion. Also, if you can, it would be helpful to share the snippet you're working on so that we can better assist you here.

Suggest an answer

Log in or Sign up to answer

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