Pulling information out of description using 'Automation For Jira' Edited

The Issue Collector stores the reporter/email information at the bottom of the description. I want to pull the reporter name and email out to store in actual jira fields using automation for jira addon. I've been struggling and wondering if its because of the formatting that is applied? Does anyone have an example of this that would help?

 

 

EXAMPLE BELOW: ---------------------

Description text goes in here and can be of any length. It's followed by the following which is the fields from Issue Collector and has the formatting as shown. 

 

Reporter: Pamela
E-mail: email@gmail.com

1 answer

0 votes
Scott Harwood Community Champion Oct 10, 2017

Hi Pamela,

Yes you can do this using smart values and the match function. You would use the create issue trigger, then in and edit action, you would add the fields you want to set, using the values below to set them.

   {{issue.description.match("Reporter:\s(.*)")}}

   {{issue.description.match("Email:\s(.*)")}}

Let me know if that works for you.

 

Cheers,

Scott 

It didn't work.

image.png

Scott Harwood Community Champion Oct 12, 2017

I think it is because it contains wiki markup, can you click to edit the description and send a copy of the text in the textarea. 

Thanks.

This is a description.

*Reporter*: Laura
*E-mail*: [mailto:laura@stjude.org]

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,373 views 0 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you