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
- Log into Jira as a Jira an Administrator and click navigate to > Issues Issues.
- From the left side bar, under sidebar, select Workflows under the WORKFLOWS section, select Workflows.
- Select your project's workflow from the right side window, the required workflow and click Edit.
- Click the transition for which which Create on Transition is is configured.
- Go to Select Post Functions and click to clickto edit the Create Issue post function.
- Select the Conditions & Configuration tab tab on the left navigation panelsidebar.
Enter
the below-mentioned condition, pattern in Condition 1, Regular expression pattern fields:
...
the condition, for the issue to be created, only when the condition is met as follows:
Tip - You must add %original_customfield name% to the condition. For example, if Pending reason is the custom field name, use %original_Pending reason%.
- For regular expression, give the expected value of the field.
- Select any of the checkboxes (Exact, Literal and Negative) as per your requirements.
- Update the configuration and the updated post function looks as:
- Publish the workflow before executing the transition.
The new issue is created only if the condition is met after the transition occurs.
Info |
---|
It is recommended to test this scenario in a test environment before deploying it in production. |