Redmoon Software – Jira apps for the Cloud and Data Center

We are going to Atlassian Team24 at The Venetian, Las Vegas. Check out the details

STM

STM

for Jira Cloud

Easily manually/auto create/transition issues (subtasks, Linked or Epic Issues). Define templates for commonly created details

STM provided a simple way of creating commonly repeated issues. This can be done manually, when an issue is transitioned to another status or when an issue is created. STM can also be used to transition child, parent or related issues when an issue is transitioned to another status.

Using subtasks, linked issues, and Epic issues is a common method for breaking up the work involved in a JIRA Issue. STM Templates can either be created for a specific project or globally (for all projects or a set of projects). These can then be used to create multiple Sub Tasks / Linked Issues / Epic Issues either manually or automatically (on Issue creation or a transition to another status).

Important: The fields that are displayed and the fields that can be copied from the parent are dependent on having been set up for the Create Issue screen in the project (Project Administration -> Screens -> Create Issue). If, for example, the due date is not in the Projects create screen then it will not appear as an entry field in the Create Issue view or as a copy from parent checkbox.

Warning: Creating issues during transitions or the creation of other Issues is a powerful feature. You need to be careful that you don’t set up loops (Issue A’s creation causes Issue B to be created which causes Issue C to be created…).

New Features:

 

Features

  1. Transition child, parent or related issues when an issue is transitioned to another status
  2. Update Templates now allow you to automatically update an Issue. You create an Update Template with the fields you want and create an Executor that specifies when the update will occur.
  3. You can now move Executors and Templates between Projects or globally.
  4. New Wizard user interface to make creating a template simpler.
  5. Cascading Templates allow you to create templates in sequence. Choose the advanced feature set and at the bottom of the template, you can select one or more templates to create after this one.
  6. Global Executors to create issues automatically for one or more projects

Defining Templates for Creating Issues

For this section, the details apply to creating sub-tasks, Epic Issues, linked Issues and unconnected Issues (Issues with no relationship to the parent).

Templates for creating Issues are defined globally for an individual project.

Project Templates

You can define Templates, for creating Issues, for each Project. The Project Templates screen is available as a Project tab and can be accessed by Project Admins only or those users defined in the Project Template Access group list in the configuration screen. You can get to the page by either using the project and add-ons menu for cloud or the project menu for data center

STM Project Menu for add-ons
Cloud Project Menu
STM Project menu for creating new Templates
Cloud Add-ons Menu
STM - Data Center Project menu for Templates
Data Center Menu

The image below shows the page where templates can be added and edited

STM Project Template page for Create Issue Templates

Once a template has been defined you can hover over it to see the icons. You can sort the Issues in the template by using the up/down arrow icon, edit it using the pencil icon, duplicate it by using the copy icon or delete it using the trash can icon.

New templates can be added by clicking on the Add button (the plus icon in the top right-hand corner) and this will open the create page shown below.

Details Section

The Details section of the STM Create Issue Template Page

The details section of the template has a name that will help identify the issues to create that belong to it, an “Add current user as watcher” checkbox to add the current user as a watcher for every issue created and optional documentation fields. Clicking on the “Show more documentation options” link will show the description and documentation link fields

Create Issue Section

STM Create Issue Tenplate - 2 Create Issue sections

There is a Create Issue section for every issue the template needs to create. The examples above have two different issues to create but you are free to define any number you like as long as you have at least one. Occurrences of question marks in a circle are help for the field to the left of the question mark. Hovering over these will give you helpful information about the field.

The following fields are available in the Create Issue sections:

  • Summary: the summary of the Issue. You can refer to parent fields here by using one of: ${Summary}, ${Description}, ${Type}, ${Assignee}, ${Reporter}, ${Priority} or to a custom field, i.e. ${My Custom Field Name}. If no value is present then the word null shows unless an ! is placed after the $ symbol (i.e. $!{Description} will show the description if it is present otherwise it will show nothing). Field references are case-sensitive. If this is a Repeating Template (see below) then you can refer to the repeated field value by using ${RepeatItem}
  • Assignee: The user that the issue will be assigned to. You can also refer to the parent issues reporter or assignee by entering ${Reporter} or ${Assignee} respectively.
  • Components: The component(s) that the issue should have.
  • Description: a description of the Issue. You can also refer to the same fields as defined for the Summary (i.e. ${Reporter} etc)
  • Due Date: either the word today (for the day the Issue is created), a date (in the format YYYY-MM-DD) or the number of days, weeks and months (in this order) from the day the Issue is created (i.e. 1m 2w 3d for one month, two weeks and three days, 2d for two days …)
  • Original Estimate: the number of minutes, hours, days and weeks (is this order i.e. 3d 4h, 1w 10m ….), a percentage of the parent’s original estimate (20%) or as a multiplier of the parent estimate (*0.25)
  • Fix Versions: The fix versions for this issue.
  • Issue Type: The issue type that the newly created Issue will have
  • Labels: Any labels you wish to add
  • Priority: one of the pre-defined priorities for an Issue
  • Reporter: Start typing the user’s name and a selection of matching names will appear. You can also refer to the parent issues reporter or assignee by entering ${Reporter} or ${Assignee} respectively.
    Custom Fields: you can specify any custom field (up to five total) of type single-line text, multi-line text, number, and single select item, multi-item select, URL. The value for that selected field can be specified.
  • Project Key: The key of the project this issue belongs to (can’t be used for subtasks).
  • Add Watcher: Adds the specified users to the as watchers of the Issue created
  • Add Comment: Adds a comment to the issue created

You can add more fields to set by selecting them from the “Fields to display” dropdown menu. You can also remove fields by clicking the X next to their name. The fields in each Create Issue section can be different for each Create Issue.

The fields shown don’t necessarily have to have values in them. In the example above the second-row description and assignee fields are visible but empty. This allows the user, using the template to manually create bulk Issues, to easily enter those fields without having to select them.

Copy From Parent

STM Create Issue Template - Copy From Parent section

This section allows you to select fields that you want copied from the parent issue.  You can select as many fields as you want. For the example above just the Fix versions and Labels fields will be copied from the parent Issue to all of the newly created issues. The fields to copy also include a list of custom fields.

The only time any of these fields will NOT be copied is if the field’s value is set in the Create Issues section that is being created.

Cascade Template

STM Create Issue Template - Cascading Templates section

The Cascade Template section allows you to create other templates (and their issues) for each of the issues being created in this template.  This functionality is only available for creating linked and unconnected issues because the cascaded template has the same relationship (linked or unconnected) as the parent template.

For example, if you have two templates, A and B.  Template A will create two issues with the summaries Development and Testing.  Template B will create a single issue with a summary Security Check.  If template A has a cascade template of B then if template A is created as linked issues then each of those linked issues (Development and Testing) will also have new linked issue from template B (Security Check).  So a total of four issues are created.

Repeat Template

STM Create Issue Tenplate - Repeat Template section

This section allows you to repeat the template creation based on the selected field (Components or Fix Versions).  So if your template has two issues to create and you specify that you want it repeated for Components then two issues will be created for each component that the issue has (i.e. if the template has three issues and there are two components then a total of six issues will be created).  If there are no components then no issues will be created.

If “Set Repeating fields value in Issue” is checked then the current field value being iterated over will be set in the issue created (i.e. if the template has one issue definition, a repeating field of Fix Versions (V1 and V2) and the parent issue has two fix versions then two issues will be created where the first issue has a Fix version of V1 and the second of V2).

Global Create Issue Templates

Global templates are templates that can be used in any project.  The global template page can be navigated to through the menu by either the Cloud or Data Center menus shown below and clicking on the STM Global Templates option.

STM Cloud global menu
STM Cloud global menu
STM Data Center global menu
STM Data Center global menu

Clicking on the Global Template menu item will navigate you to the following page.

STM Global Templates page

Adding a new Template will show the page below.  This is almost identical to the project template dialog except for the “Show in Issues for Bulk Create pages” checkbox.  If this is checked then the template will be shown when creating bulk sub tasks, linked issues, unconnected issues or Epic issues.  Either way, global templates are always available for creating as part of an executor (see below).

STM Global Create Issue Template - Details section

Apart from the addition of the checkbox, all functionality is identical except that select dialogs such as issue types, priorities, etc will show every possible value from all Projects.  This is because global templates are not associated with a particular project and hence cannot show a subset of these lists.

Because these lists show all possible selections, the template that is created may cause an error. This is because the item has a valid value but not for the current Project.  If it is used in the correct Project then it will work.

Defining Templates for Updating Issues

For this section, the details apply to updating Issues. Templates for updating Issues are defined either globally for an individual project.

Project Update Templates

You can define Templates, for updating Issues for each Project. The Projects Template screen is available as a Project tab and can be accessed by Project Admins only or those users defined in the Project Template Access group list in the configuration screen.  You can get to the page by either using the project and add-ons menu for cloud or the project menu for data center

STM Project Menu for add-ons
Cloud Project Menu
STM Project menu for creating new Templates
Cloud Add-ons Menu
STM - Data Center Project menu for Templates
Data Center Menu

The image below shows the page where templates can be added and edited

STM Project Update Issue Templates page

Once a template has been defined you can hover over it to see the icons. You can move the template to a different Project or be global, edit it using the pencil icon, duplicate it by using the copy icon or delete it using the trash can icon.

New templates can be added by clicking on the Add button (the plus icon in the top right-hand corner) and this will open the create page shown below.

STM Project Update Issue Template - Details and Update Issue sections

Details Section

The details section of the template has a name that will help identify the issues to create that belong to it, an “Add current user as watcher” checkbox to add the current user as a watcher for every issue created and optional documentation fields. Clicking on the “Show more documentation options” link will show the description and documentation link fields.

Update Issue Section

There is an Update Issue section that specifies which fields in the Issue are updated and what the new values of the field are. The example above has two different fields to update but you are free to define any number you like as long as you have at least one.  Occurrences of question marks in a circle, at the end of a field, are help for the field to the left of the question mark.  Hovering over these will give you helpful information about the field.

NOTE: All fields except Add Comment and Add Watchers replace the current value with the new value. For example, if the current label for the Issue is ‘Java’ and your update template specifies ‘Python’ and ‘ReactJS’ then the update will replace Java with Python and ReactJS.

The following fields are available in the Update Issue sections:

  • Summary: the summary of the Issue.  You can refer to parent fields here by using one of: ${Summary}, ${Description}, ${Type}, ${Assignee}, ${Reporter}, ${Priority} or to a custom field, i.e. ${My Custom Field Name}.  If no value is present then the word null show unless an ! is placed after the $ symbol (i.e. $!{Description} will show the description if it is present otherwise it will show nothing). Field references are case sensitive.  If this is a Repeating Template (see below) then you can refer to the repeated field value by using ${RepeatItem}
  • Assignee: The user that the issue will be assigned to.  You can also refer to the parent issues reporter or assignee by entering ${Reporter} or ${Assignee} respectively.
  • Components: The component(s) that the issue should have.
  • Description: a description of the Issue.  You can also refer to the same fields as defined for the Summary (i.e. ${Reporter} etc)
  • Due Date: either the word today (for the day the Issue is created), a date (in the format YYYY-MM-DD) or the number of days, weeks and months (in this order) from the day the Issue is created (i.e. 1m 2w 3d for one month, two weeks and three days, 2d for two days …)
  • Original Estimate: the number of minutes, hours, days and weeks (is this order i.e. 3d 4h, 1w 10m ….), a percentage of the parent’s original estimate (20%) or as a multiplier of the parent estimate (*0.25)
  • Fix Versions: The fix versions for this issue.
  • Issue Type: The issue type that the updated Issue will have 
  • Labels: Any labels you wish to add
  • Priority: One of the pre-defined priorities for an Issue
  • Reporter: Start typing the user’s name and a selection of matching names will appear.  You can also refer to the parent issues reporter or assignee by entering ${Reporter} or ${Assignee} respectively.
  • Custom Fields: you can specify any custom field (up to five total) of type single-line text, multi-line text, number, and single select item, multi-item select, URL. The value for that selected field can be specified.
  • Project Key: The key of the project this issue belongs to (can’t be used for subtasks).
  • Add Watcher: Adds the specified users to the as watchers of the updated Issue
  • Add Comment: Adds a comment to the updated issue

 

You can add more fields to set by selecting them from the “Fields to display” dropdown menu. You can also remove fields by clicking the X next to their name.  There is only one Update Issue section

Global Update Issue Templates

Global templates are templates that can be used in any project.  The global template page can be navigated to through the menu using either of the cloud or data center menus shown below and clicking on the STM Global Templates option.

STM Cloud global menu
STM Cloud global menu
STM Data Center global menu
STM Data Center global menu

The content of global Update Issue Templates are identical to the Project ones.  Please see the Project Update Issue Templates section for more details

Manually Creating/Deleting Bulk Issues

In the Issue pages More menu there are options to create bulk sub-tasks, linked Issues, Epic Issues, unconnected issues and to delete sub-tasks, linked issues or Epic issues.  Epic Issue creation and deletion are only available if you are running the “Jira-Software” version of Jira.

STM Cloud Create Bulk and Delete Bulk menu items in the More menu

If you select one of the create bulk Issue menu items then a dialog similar to that below will be displayed.

STM Create Bulk Sub Tasks page

NOTE: This section doesn’t describe how to create a template just how to use existing ones. Please see the Project Template section for more details on creating templates.

There are three ways of using this dialog: Creating a template, creating a modified template and creating your own template from scratch.

Creating a Template

This option can be used when the top toggle button has “Create Template” selected. You are given the choice of which template you want to create (all of the current Project templates and global templates that are visible to the bulk create pages), the default issue type to use (if there isn’t one already specified in the template) and, if this is creating linked issues, the link type.

​When the above options are specified then you can click on the Create button.

Creating a Modified Template

This option can be used when the top toggle button has “Modify Template” selected. You are given the choice of which template you want to create (all of the current Project templates and global templates that are visible to the bulk create pages) and that template is shown at the bottom of the dialog. The template can be modified however the user likes and that modified is what will be created. The original template IS NOT updated with the modifications.

​The user also needs to select the default issue type to use (if there isn’t one already specified in the template) and, if this is creating linked issues, the link type. The modified template will then be created when the Create button is clicked.

Creating your own Template

This option can be used when the top toggle button has “Create your own template” selected. At the bottom of the dialog you are given an empty template where you can specify the issue(s) that you want to create.

​The user also needs to select the default issue type to use (if there isn’t one already specified in the template) and, if this is creating linked issues, the link type. The modified template will then be created when the Create button is clicked.

Delete Bulk Issue

To delete bulk Issue, select the appropriate delete bulk menu item.  That will display a dialog like that shown below.  Check the boxes of the Sub Tasks you want to delete and press “Delete Sub Tasks”.  You can also click on the circle containing three dots to display more information about the Issue.

STM Bulk Delete Subtasks page

Project Executors - Automatic Template Creation

To automatically create bulk sub-tasks, Linked Issues, Epic Issues or Unconnected Issues you need to use an Executor.  A Projects Executor page is available as a Project tab (go to the project -> Add-ons -> STM Executors) The image below shows the page where executors can be added and edited.

Executor (when enabled) will create issues automatically, based on the specified template and criteria.  If you don’t want a template to run then edit the Executor and uncheck the Enabled checkbox.

STM Project Executors page

If you hover over an Executor three icons will be shown on the right-hand side. The angled arrow allows you to move the Executor and its Template to a different Project (or global), the pencil icon allows you to edit the Executor, the copy icon will duplicate the Executor and show it in a new Executor dialog and trash can icon will delete the Executor.

​​New Executors can be added by clicking on the add button (plus icon, top right-hand corner) and this will show the add Executor page shown below

STM Add/Edit Executor page showing the Detail and When sections

To start with, you are asked to enter the name of the Executor and whether it is enabled or not. You now need to decide when the executor will run: when the issue is created or when it is transitioned. Click on “On Create Issue” or “On Transition” to continue. For the purpose of this documentation, we clicked “On Transition”

STM Add/Edit Executor page showing the Detail and When sections with values entered

For On Transition we need to enter the To Status of the transition and optionally select the From Status.

Once the When section is filled out you can click on the green icon (to add a new condition) or the yellow icon (to add a new action). This pop-out icon menu will show automatically at the end of all sections if, and only if, there are valid options. You can also use the pop-out icon menu between other sections if there is a plus symbol.

For this example, we will add a condition to the Executor. Clicking on Condition (the green icon) will allow us to specify a condition. The condition can either be specifying a field’s value or stating who the current user must be.

STM Executor Add/Edit page showing the Condition section

We add a condition to make sure that the Issue type is an Epic and click Next. We then get to choose between adding another Condition or an Action. For this example, we add an Action. The Action section allows you to specify the actions that you wish to do for the Executor.

STM Executor Add/Edit Page showing the Action section without a selection

We choose to create a Sub-task

STM Add/Edit Executor page showing the Action section after a Sub-task action has been selected

We then select the template to use and the default issue type. After that, we click save and return to the Executors page.

NOTE: It is still possible to add additional conditions by hovering over the plus symbol between the Condition and Action sections and then clicking on the green condition icon.

Transition Issues

Transitioning Child Issues

Rules:

  1. Issues in the same project can only be transitioned to the same status as the parent issue is going to. This is a safety mechanism to stop recursive transitions from going out of control.
  2. If there is a “from status” then the issue will ONLY be transitioned if it currently has the “from status”.
  3. An issue will be transitioned ONLY IF the “to status” is one transition away

 

​For Transitions, three variations can be used to set up an Executor. The simplest is for transitioning issues to the same status as the parent issue (issues can be in any project). You select the child type (subtask or linked issue) and which child issues you want to transition (for linked issues you say which link types you want and for subtask, you specify which issue types). The Transition To field is left as the same Status. The example below will transition all linked issues of the type “relates to” to the same status as the parent issue (but only if that transition takes just one step).

STM Add/Edit Executor page - transition Issue to same status for a linked issue

The next type of transition is when you want to transition related issues from one status to another regardless of what status the parent has. As you can see below we have the same fields as above (see above for an explanation of those fields) plus three more. The first, Status Set To, is left at One Status. We then have the From Status and To Status fields. They specify what status the child issues must start on (this is optional) and what status they will be transitioned to. The example below will transition “relates to” linked issues to In Progress regardless of their initial status but only if In Progress can be transitioned to with just one transition.

STM Add/Edit Executor page - transition Issue to single different status for a linked issue

The next type of transition is the most complicated one and also the most powerful.  We same have the fields shown above (From and To Status is now Default From and To Status) and we also have the ability to specify from and to statuses for individual projects.  For the example below “relates to” issues in the WI2 project will transition to In Progress only if they currently have the Backlog status and the current project will transition to In Progress status no matter what status they currently have.

STM Add/Edit Executor page - transition Issue to many different statuses for a linked issue

Transition Parent/Related issues can be used in three different scenarios where you have a parent/related issue with either epic issues, subtasks or linked issues. You can transition the parent in two ways: when the first child is transitioned or when the last child is transitioned.

​​In the first option, when the first child issue is transitioned to a new status then the parent issue is also transitioned. For example, you have a parent issue A with two subtasks B and C, all are on the status To do. When the first child (either B or C) is transitioned to In Progress then issue A is automatically transitioned to In Progress.

​​The screenshot below shows an example of scenario one when the children are subtasks.

STM Add/Edit Executor page - transition Parent/Related Issue to same status for a linked issue

For the example above the Executor is designed to run when the children are subtasks and you want the parent to go to the same status as the transitioned child.

​The second option is for when the parent is transitioned after the last child is transitioned. For example, you have a parent issue A and two linked issues B and C (on the same link type), issues A and C are on status To do and B is on the status In Progress. When issue C is transitioned to In Progress issue A will be automatically transitioned to Done.

The screenshot below shows the settings to accomplish this.

STM Add/Edit Executor page - transition Parent/Related Issue to single different status for a linked issue

Lastly, we have an example of transitioning a parent/related issue when connected as an Epic issue.

STM Add/Edit Executor page - transition Parent/Related Issue to many different statuses for a linked issue

For the example above, the Executor is designed to run when the last child (an Epic issue) is transitioned. When this occurs the parent can be transitioned to one of two statuses. If the Epic is in the TEST project then the parent is transitioned to Done, otherwise, it is transitioned to In Progress.

Global Executors - Automatic Template Creation

Global Executors are very similar to Project Executors. The only difference is that you have to either choose if it applies to all projects or to a select group of projects it will apply to. See Project Executors, above, for the general usage of an Executor.

The screenshot below shows the difference for the Global Executor. This includes a selection of whether this is for all or selected projects and if it is for selected projects then which ones.

STM Global Executor Add/Edit page showing the Project section
STM Global Executor Add/Edit page showing the Project section for selected projects

Automatic Issue Creation - In Action

When an Issue completes a transition that creates issues through an Executor a message box is displayed to inform the user that processing is occurring in the background. STM will keep checking in the background to see when the Issues have been created.

When they are created then the Issue is refreshed to display them and a message is displayed to show that they have been created. Below are examples of the pending and created messages.

STM Notifications when Issues are created

If an error occurs during the creation process then an alert dialog will be displayed telling the user what happened.

STM Notifications when an error occurs

As well as being displayed in the popup dialog all STM errors are also available in a project admin area (see below). In this area there is also a STM Audit page that will show what was create and why a template was not created.

Errors

Any errors that occur during the creation of sub-tasks or Epic Issues in a workflow transition can be viewed under the “STM Errors” tab in a project administration screen. Details are kept for up to two weeks after the error occurs (at which time they are deleted).

STM Project Errors page

Project Bulk Create/Update Issues using JQL

STM has a “STM Bulk Create/Update” page that can be used If you need to create issues for multiple parent issues or update multiple issues at the same time. The project page can be found at the following location

STM Project Menu for add-ons
Cloud Project menu
STM Bulk Create/Update menu item for projects
Cloud sub-menu
Data Center Menu

Select this menu item will showing the following screen

STM Bulk Create/Update page

You can either enter JQL directly on the page and click Run JQL or click on Open JQL Editor button to open the editor.

The JQL Editor for the STM Bulk Create/Update page

After getting the correct JQL in the editor click on the Save button to return to the main page. You then click Run JQL

The STM Bulk Create/Update page after the Run JQL button is clicked

Next, you can

  1. Select to Create/Update the issues
  2. If this is for creating issues then select Sub-tasks, Linked Issues or Epic Issues.
  3. Select whether you want to uses an existing template, modify an existing template or create your own template
  4. Specify the related details (template, default issue type…)

 

Clicking on Create or Update will either creating issues for those selected or update them.

Global Bulk Create/Update using JQL

The global Bulk Create/Update page can be accessed through the top level Apps menu

STM - Cloud global menu
STM - Cloud global menu
STM - Data Center global menu
STM - Data Center global menu

See the usage instructions in the section above (Project Bulk Create/Update using JQL).

STM Configuration

Configuration

The configuration screen allows you to define access to the global and project Template and Executor screens.

​For the global Template and Executor pages, system admins always have access. For the project Template and Executor pages, project admins always have access. Use one of the two fields (shown below) to specify which additional users will also have access by entering one or more user groups. All users in those groups will then have access.

STM Configuration page for setting access

Getting Started

The Getting Started page is a good starting point for users unfamiliar with STM. It specifies commonly used terms and allows the user to create examples of Templates and Executors.

STM Getting Started Page

Language Support

NOTE: Translations apply to all text EXCEPT the menu text, tab text, and panel heading text.

​​The Langauge Support section allows you to choose a language to get the App to choose for you. This plugin comes

STM Language Support

Change Log

The change log page allows you to audit changes that have been done to templates in the last three months. The example below shows the Analysis and Development template was create on the 29th Sep 2021 and updated the next day. The audit data also includes deleted templates.

STM Change Log