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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published Apr 19, 2018 in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

366 views 0 6
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