Versions Compared

Key

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

Whenever an issue creation is configured for the Creation on Transition post function and  This article explain how to get original issue value when a substitution variable is usedTo get the original issue value when a new issue is created configured using Creation on Transition post functions, substitution variables are required. This article explains how to get the original issue value with a condition applied to a substitution variable.

Instructions

  1. Log into Jira as a Jira an Administrator and click navigate to Image Modified > Issues Issues.
  2. From the left side bar, under sidebar, select Workflows under the WORKFLOWS section, select Workflows.
  3. Select your project's workflow from the right side window, the required workflow and click Edit
  4. Click the transition for which which Create on Transition is  is configured. 
  5. Go to Select Post Functions and click Image Removed to clickImage Added to edit the Create Issue post function.
    Image RemovedImage Added
  6. Select the Conditions & Configuration tab  tab on the left navigation panelsidebar.
  7. Add Enter the below mentioned condition, for the issue to be created, only when the condition is met as follows:

    Image Added

    Tip
    Need to add %original
    • You must add %original_customfield name% to the
    Condition
    • condition. For example,
    here
    • if Pending reason
    is
    •  is the custom field name,
    so
    • use %original_Pending reason%.
    • For
    Regualr
    • regular expression
    pattern
    • , give the expected value of the field.
    Also, select the required checkbox like
    • Select any of the checkboxes (Exact, Literal and Negative
    to match
    • ) as per your requirements.
    Image Removed


  8. Update the configuration and the updated post function looks likeas:
    Image RemovedImage Added
  9. Publish the workflow before executing the transition. You see that a

The new issue is created

...

only if the condition is met after the transition occurs.

Info

It is recommend recommended to test this scenario in a test environment before implementing the same deploying it in the production.