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

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
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,169 views 5 10
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