Wiki

Clone wiki

JIRA Workflow Toolbox / post-functions / Parse field for extracting data

Purpose

Post-function "Parse field for extracting data" is aimed to make it possible for a workflow transition to extract specific pieces of information from a field by means of parsing the field's value.

It uses delimiters or/and format specifications of the value to be extracted for selecting the data fragments that will be extracted from the field's value.

Configuration Screen

This is an example of the post-function's configuration for extracting an email address from the last comment of an issue and writing it into a custom field called Email. The email is expected to be preceded by string "SENDER = ", with an uncertain number of spaces and ignoring the case. This is the configuration to do it:

Parse field for extracting data post-function's configuration screen 1_3
Parse field for extracting data post-function's configuration screen 2_3
Leading delimiter: SENDER\s*=\s*

Once configured, post-function's configuration look like this:

Parse field for extracting data post-function's configuration screen 3_3

An example of the result of the execution of this post-function:

Parse field for extracting data post-function's result

Proposed Usage Examples

  • Parse Summary for setting issue Priority: setting Priority of an issue when we write the priority name between brackets in the issue Summary. This can be particularly useful for issues created by email.
  • Parse Summary for setting Due Date: setting Due Date of an issue when we write "due on" followed by a date in the Summary of the issue. This can be particularly useful for issues created by email.

Real Use Cases

Related Features

Updated