Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Scenario

Div
classtime

Image Removed Estimated Time: 12 min

You have a new Create Issue post function in place and each time the workflow transition takes place, you would like to inspect the Summary to see if it is an exact match of a specific string and if so, you would like to create the new issue and then link the newly created issue back to the parent issue that was being transitioned. 

Background

Our scenario will use an example ePub workflow that helps teams coordinate the publication of electronic books. We have a Create Issue Post Function that processes when users transition issues from the "Open" to "In Draft" steps. For each instance of this transition, we will automatically create a new issue linking it back to the parent issue. What we want now, is to check the Summary (using regex) to see if it begins with either "epub" or "digital" and if either condition are met, we will create and link the issues. 

Steps

The following steps will demonstrate how to configure Create on Transition, regex inspection of the summary and applying the proper linkage between issues.

...

border0
heading0
multiplefalse
enableHeadingAttributesfalse
columnAttributesstyle="border:0;width=5%;",style="border:0;width=65%;",style="border:0;width=30%;max-width=30% !important;"
idsteps_table
enableSortingfalse
enableHighlightingfalse
Include Page
SUPPORT:Create and link issue on exact summary match

...

Step 1

As a Jira Administrator or Workflow Administrator:

  1. Navigate to your workflow (ePub in our case).
  2. Edit your ePub workflow to create a draft version.
  3. Navigate to the Post Functions tab and add a Create Issue post function.

...

- 7.x
SUPPORT:Create and link issue on exact summary match

...

Step 2

Within the Issue Fields screen:

  1. Navigate to the "Links" section.
  2. Within the "Create link" field, type the letters "Orig".
  3. Select "Original issue key" from the list of available options.
  4. Within the "Create link type" field, select the appropriate link for this scenario. 
    In our case, we will select a custom link type called "Create on Transition".
  5. Set the value of the "Create link direction" to "New issue to issue key".

Image Removed

...

Image Removed

...

Step 3

Define the regex used to inspect the summary of the parent issue and
the exact matching condition that will used to evaluate.

  1. Navigate to the "Conditions & Configuration" section.
  2. Within the Condition 1 field, enter "%original_summary%" 
  3. Within the Regular expression pattern field for Condition 1 enter "^epub | ^digital". This 
    will search for any summary that is "epub" or "digital"
  4. Check off the "Exact" matching condition, so we only create the issue when either of
    the text strings return an exact match.
  5. Click the "Add" button to save your changes.

Image Removed

...

Image Removed

Step 4

...

- 7.x