Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column
width30%
Panel
borderColor#333f48
bgColor#FFFFFF
titleColor#eeeeee
borderWidth1
titleBGColor#333f48
borderStylesolid
titleOn this page

Table of Contents
maxLevel1

Column



Features used to implement the example



Example: Set a Select or Multi-Select field using regular expression to express the values to be assigned

What I want to do is to set a Multiple Select Field to the single value in that same Multiple Select Field that begins with the string “Current”. I don’t know the text that follows the “Current” string – only that it begins with “Current”.

I have just released version 2.0.10 of Jira Workflow Toolbox. To implement the use case you described you have to use post-function Copy parsed text to a field twice.

  • Copy "/(Current.*)/" removing the quotes to virtual field "Ephemeral string 1".
  • Copy virtual field "Ephemeral string 1" to your Multi Select field.

A final note: It should be possible to do it with only one use of Copy parsed text to a field, but there is a bug that I will fix in the next version of the plugin. This bug only appears when you set fields with this post-function in a transition that clears the resolution field of the issue. This has been fixed in 2012.

Other examples of that function

Incoming Links
pageCopy parsed text to a field
labelsexample

Related Usage Examples

Content by Label
showSpacefalse
cqllabel = "example" and label = "custom-field"