Skip to end of banner
Go to start of banner

How to get original issue value using the substitution variable in Create on Transition for Jira

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Whenever trying to get original issue value for a new issue creation that is configured for the Creation on Transition post function, need to use the substitution variable.

This article explains how to get original issue value when a substitution variable is used.

Instructions

  1. Log into Jira as a Jira Administrator and click  > Issues 
  2. From the left side bar, under the WORKFLOWS section, select Workflows.
  3. Select your project's workflow from the right side window, click Edit
  4. Click the transition for which Create on Transition is configured. 
  5. Go to Post Functions and click  to edit the Create Issue post function.

  6. Select the Conditions & Configuration tab on the left navigation panel.
  7. Add the below mentioned condition for the issue to be created only when the condition is met:

    Need to add %original_customfield name% to the Condition. For example, if 'Pending reason' is the custom field name then use %original_Pending reason%.
    For Regualr expression pattern, give the expected value of the field. Also, select the required checkbox like Exact, Literal and Negative to match your requirements.

  8. Update the configuration and the updated post function looks like:

  9. Publish the workflow before executing the transition. You see that a new issue is created only when the condition is met after the transition occurs.

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

  • No labels