Versions Compared

Key

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

Scenario

Div
classtime

Image Removed Image Added Estimated Time: 9 min

You have a new Create Issue post function in place and each time the workflow transition takes place, you would like the newly created issue to be linked back to the issue that was being transitioned. 

Background

This scenario uses 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 automatically create a new issue linking it back to the parent issue. 

Steps

The following steps demonstrate how to configure Create on Transition, applying the proper linkage between issues:

Table plus
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


Step 1

As a Jira Administrator or Workflow Administrator:

  1. Navigate to your workflow (ePub in this case).
  2. Edit your ePub workflow to create a draft version.
  3. Navigate to the Post Functions tab.
  4. Click the Edit icon of the respective post function you want to edit.


Step 2

ISSUE FIELDS:

  1. Select the Links tab.
  2. Select the following from the respective list of available options:
    • Create Link - "Original issue key"
    • Create link type - "Create on Transition"
    • Create link direction - "New issue to issue key"
  3. Click the Update button to save your changes.


Image RemovedImage Added

Step 3

Publish and validate your changes.

  1. Remember to publish your workflow. We always recommend saving a backup
    of the previous workflow when prompted.
  2. Create an issue and transition the issue to trigger your post function.
  3. Validate that the new issue was created and that it contains a link back to
    the originating issue.


...