Div |
---|
|
Table of Contents |
---|
maxLevel | 1 |
---|
exclude | On this page |
---|
type | flat |
---|
separator | | |
---|
|
|
Include Page |
---|
| _RecipeTemplateTopLogo |
---|
| _RecipeTemplateTopLogo |
---|
|
This recipe provides step-by-step instructions on how to use the Create Update On Transition for JIRA add-onduring a workflow transition to automatically create a standard Story when creating an Epic in an Agile project. This automation ensures the Story is always created, and in a consistent manneradd a comment to a linked issue. This automation is particularly helpful when one issue is blocking another and you want to ensure the Assignee of the blocked issue is aware that the impediment has been resolved.
You will need JIRA Administrator permissions to your JIRA instance in order to complete this recipe.
It will take you approximately 12-13 minutes to complete this recipe.
Table plus |
---|
border | 0 |
---|
heading | 0 |
---|
multiple | false |
---|
enableHeadingAttributes | false |
---|
columnAttributes | style="border:0;width=5%;",style="border:0;width=65%;",style="border:0;width=30%;max-width=30% !important;" |
---|
enableSorting | false |
---|
class | ingredients_table |
---|
enableHighlighting | false |
---|
|
|
...
Table plus |
---|
border | 0 |
---|
heading | 0 |
---|
multiple | false |
---|
enableHeadingAttributes | false |
---|
columnAttributes | style="border:0;width=5%;",style="border:0;width=65%;",style="border:0;width=30%;max-width=30% !important;" |
---|
enableSorting | false |
---|
class | ingredients_table |
---|
enableHighlighting | false |
---|
|
|
...
Table plus |
---|
border | 0 |
---|
heading | 0 |
---|
multiple | false |
---|
enableHeadingAttributes | false |
---|
columnAttributes | style="border:0;width=5%;",style="border:0;width=65%;",style="border:0;width=30%;max-width=30% !important;" |
---|
id | steps_table |
---|
enableSorting | false |
---|
enableHighlighting | false |
---|
|
How to Add a Comment to a Linked Issue During a Workflow Transition | Div |
---|
| Estimated Time: 2 min |
In this step, you are going to create a project you will use when creating a standard Story for an Epic. To do this, log on to your JIRA instance as a JIRA Administrator and do the following: - From the Projects menu, choose Create Project.
- In the Select Project Type screen, select Agile Scrum Simple Issue Tracking and click Next.
- The second screen shows the Issue Types that will be used (Bug, Task , and Sub-task, Story and Epic). Click Select.
- The third screen prompts you to supply a Name and Key for your new JIRA project.
- Use Recipe ScrumUpdate On Transition as the Name.
- Use RS RUOT as the Key.
- Click Submit to create the project, with you set as its Project Lead.
- If you click Create and choose Recipe ScrumUpdate On Transition as the Project and Story Task as the Issue Type, you will see a Create Issue screen like the one shown to the right. Only 4 3 fields (Project, Issue Type, and Summary and Reporter) are required, as indicated by the red asterisk next to their field labels. There are 2 optional fields: Priority and Description.Click Cancel to close
In the next step, you'll create 2 sample issues, so leave the Create Issue screen without creating an issueopen. | Create Issue screen: Image RemovedImage Added Expand |
---|
title | View all screens for the Create Project wizard... |
---|
| First screen: Image RemovedImage Added Second screen: Image RemovedImage Added Third screen: Image Added |
|
| How to Add a Comment to a Linked Issue During a Workflow Transition | Image Removed Div |
---|
| Image Modified |
| Expand |
---|
title | View the Configure Screen screen... |
---|
| In this step, you will create 2 sample issues that will be used to test the workflow transition you'll be adding in a later step. - On the Create Issue screen, fill in the fields as shown in the first table on the right and then click Create. Take note of the issue key that was created.
- Click Create again. Then, flll in the fields as shown in the second table on the right and click Create. Take note of the issue key that was created.
- Go to the first issue you created. and do the following:
- From the More menu, choose Link.
- Fill in the fields as shown in the screenshot to the right. (Your issue keys might be different, but you should be viewing the first issue while creating a "blocks" link from it to the second issue.)
- Click Link to save this link. You should now see the link showing in the "Issue Links" section of the View Issue screen.
| Fields for creating the first issue:Project | Update On Transition (RUOT) | Issue Type | Task | Summary | This issue blocks another |
Fields for creating the second issue: Project | Update On Transition (RUOT) | Issue Type | Task | Summary | This issue is blocked by another |
Link screen, to link the first issue to the second issue: Image Added |
| How to Add a Comment to a Linked Issue During a Workflow Transition | Div |
---|
| Estimated Time: 1 min |
In this step, you will edit the workflow used by the Recipe Scrum Update On Transition project so you can begin the process of adding the Create Update Transition post function that will create the standard Storya comment on the linked issue. - From the Cog menu ( ) , choose Projects.
- Click the Recipe ScrumUpdate On Transition link to display the Project Summary page which shows how the project is configured.
- In the Workflows section of the page, click the pencil icon () next to the Agile Simplified Workflow for Project RS RUOT: Simple Issue Tracking Workflow link to edit that workflow.
- Click the button so that the workflow is shown in Text mode rather than Diagram mode.Click on
- There are 2 transitions named "Done": one is in the To Do link in the Step Name column to go to the Step: To Do screen.Click on the Create step to go to the Transition: Create screen.step and the other is in the In Progress step. In the next step, you will be adding a new post function to both of these transitions,
| Step: To Do RUST: Simple Issue Tracking Workflow screen:
Image Removed Transition: Create screen: Image Removed Image Added |
| How to Add a Comment to a Linked Issue During a Workflow Transition | Create transition Div |
---|
| Estimated Time: 1 min |
In this step, you will add a post function on the Create transition. In a later step, you will configure this post function.two Done transitions. From the Transition: Create screen, RUOT: Simple Issue Tracking Workflow screen, click the Done transition under the To Do step, and then do the following: - Click the Post Functions tab to display the post functions. Your screen should look like the first screenshot shown to the right.
- Click the Add post function link to display the Add Post Function To Transition screen.
- Select Update issues and then click Add.
- Click the Update issues link to display the Add Post Function To Transition screen.
- Select Create issue and then click Add.
- The Add Parameters To Function screen will be displayed.
| To Do step's Transition: Create Done screen, before any changes:Image RemovedImage Added
Add Post Function To Transition screen: Image Added Post Function parameters:Image Removed |
| How to Add a Comment to a Linked Issue During a Workflow Transition | Div |
---|
| Estimated Time: 3-4 min |
In this step, you will configure the post function you just added to the Create transition so that a standard Story will be created each type a user creates an Epic. From the Add Parameters To Function screen, do the following: - Set the parameters as shown to the right.
- Condition 1 indicates that the post function should only be executed when the issue being created has an Issue Type = Epic.
- Condition 2indicates that the post function should only be executed when the JQL Query (set in another parameter) returns no results. This is a safety precaution to prevent duplicate issues being inadvertently created. %jql_result_count% is a substitution variable
Summary defines the value to be set as the Summary of the new Story being created. Note |
---|
The value specified in this parameter must match the string being checked in the JQL Query parameter. |
- Description defines the value to be set as the Description of the new Story being created.
- Issue Type indicates that the new issue being created will have an Issue Type of Story.
- Set custom field indicates that the new Story being created should have an Epic Link back to the original issue (the Epic). Note that the field name (Epic Link, in this case) is case sensitive.
- JQL Query looks for any issue linked to the same Epic with a Summary whose value matches the Summary parameter. This query should return 0 records if the Story has not yet been created, and is used to prevent duplicate Stories from being created for the same Epic.
- Click Add to save your changes to the parameters and add the Create Issue post function.
- Select Create issue and then click Add. The Add Parameters To Function screen will be displayed. You will be returned to the Transition: Create screen.
- Your screen should now look like the screenshot shown to the right.
| Post Function parameters:Condition 1
| | Condition 2 | | Summary | | Description | | Issue Type
| | Set custom field
| | JQL Query | |
Transition: Create screen, after adding the Create Issue post function:
|
| How to Add a Comment to a Linked Issue During a Workflow Transition | Div |
---|
| Estimated Time: 1 min |
In this step, you will move the new Create Issue post function so it is executed after the Epic issue is created and then you will publish the workflow so you can test it. From the Transition: Create screen, do the following: - Repeatedly click the Down Arrow icon () next to the Create Issue post function until the post function is below the "Creates the issue originally" post function. This ensure the Epic is created before the Create Issue post function is executed.
- Your screen should now look like the screenshot shown to the right.
- Publish your draft workflow by clicking the Publish Draft button at the top of the screen. The Publish Draft Workflow screen will appear.
- When prompted whether to save a backup copy, click Yes and then click Publish.
| Transition: Create screen, after moving the Create Issue post function:
Expand |
---|
title | View the Publish Draft Workflow screen... |
---|
| |
|
| How to Add a Comment to a Linked Issue During a Workflow Transition | Div |
---|
| Estimated Time: 3 min |
In this step, you will verify the post function is working as intended. - Click the Create button to create a new issue. The Create Issue screen will appear.
- Fill in the fields as shown on the right and click Create. A popup window similar to the one shown on the right will appear to confirm the issue was created.
- Click the link in that popup to open the Epic you just created.
- You should see a screen similar to the first screenshot shown on the right, with the "Issues in Epic" section showing the standard Story that was automatically created.
- Click the link to the new Story and you should see a screen similar to the last screenshot shown on the right. This new Story shows an Epic Link to the Epic that was manually created.
That's it! By adding a post function to create this standard Story automatically, you can be assured that every Epic will have such a story and your team will spend less time creating issues! Tip |
---|
| If your post function is malfunctioning in any way, enable additional DEBUG logging as described here so that the Create On Transition add-ons writes additional information to the JIRA log file. This information will help you understand the cause of the problem and how to resolve it. You may also want to read our tips on the Create On Transition add-on. |
| Create Issue fields:Project | Recipe Scrum (RS) | Issue Type | Epic | Epic Name | Test Epic | Summary | Test Epic Summary |
Confirmation popup window:
Epic that was created manually:
Story that was created automatically:
|
|
...