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 vote
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 

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

115 views 0 4
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