Workflow Toolbox - Set field from regexp-extracted substring of another field

We want to set a field to a datetime from an email received by JIRA. We currently have the contents of the email populating the description field. We have a regular expression to match the desired substring, but I cannot figure out how to extract that substring and populate the target field with it. It seems like everything the Workflow Toolbox does is backwards or only seemingly related to what I'm attempting to accomplish, and the language describing each post-function is difficult to digest or just plain unclear. I'm really hoping I'm just confusing myself with regards to accomplishing this, at it seems like a remarkably easy task; however, neither "Copy a parsed text to a field", "Set a field from a set of rules based on regexp", nor "Regexp renderer" appears to fit the bill.

So the question: How do I set a field to a regex-extracted substring of another field?

1 answer

1 accepted

This widget could not be displayed.

I suggest installing Jamie Echlin's Script Runner and using it for more sophisticated post-function work. If you have some basic programming chops, you'll find yourself using it for lots of things in JIRA and dispensing with most other post-function/etc add-ons.

Here's how to do field regex copies:

Awesome, thank you for the quick response! I'll see if our admins are cool with this.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

139 views 2 0
Join discussion

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