[转]Jira Work with issue workflows

A Jira workflow is a set of statuses and transitions that an issue moves through during its lifecycle, and typically represents a process within your organization. Workflows can be associated with particular projects and, optionally, specific issue types by using a workflow scheme.

Jira has built-in workflows that you can use without needing to make any changes, or you can start fresh and create your own. You can’t edit the built-in workflows, but you can copy them and use the copy as a basis to create your own.

Here’s an example of a default workflow:

Statuses and transitions

Two concepts define a workflow:

Active and inactive workflows

There are slight differences between editing an inactiveand an active workflow. We place restrictions on the modifications you can make to an active workflow, due to the impact the changes will have on projects and/or issue types that use this workflow.

Activating a workflow

All workflows are inactive until you associate them with a workflow scheme, which can then be associated with a project. To activate a workflow:

To finish activating your workflow, associate the workflow scheme it’s in with a project (if an issue type is not defined in the project’s issue type scheme, that specific workflow is not used):

Each issue needs to have a valid status, so you may need to assign statuses to a select number of issues after you switch workflow schemes.

A Jira project must always be associated with a workflow scheme, since all issues must move through a workflow. To disassociate a custom workflow scheme from a project, simply associate that project to the default workflow scheme instead.

Adding a transition to a workflow

To add a transition, open your workflow in text mode:

In the Transition View field, select either:

  • No view for transition — choose this if you do not need to prompt the user for input before the transition is executed (i.e. the transition will occur instantly when the user clicks the transition)
  • Or, the name of a screen (from the dropdown menu) that will be shown to users, asking for input before the transition is executed. You can choose one of Jira’s default screens or any other screen you have created. If no existing screen is suitable, you may wish to create a new screen for the transition.

Adding a status to a workflow

Add an issue action

Transitioning an issue can mean moving it to another status, or performing a “looped” transition where the transition allows you to perform an action but keep the issue in its current status. We refer to these looped transitions as issue actions. Sometimes you may just want to perform an action to an issue without moving its status through the workflow.

To add an issue action:

Workflow designer

The workflow designer is a graphical tool that allows you to see the layout of your workflow and to create and edit a workflow’s steps and transitions. You will need to log in as a user with the Administer Jira global permission to access the functionality described below.

With the workflow designer, you can:

  • Manage status and transitions: add, click and drag, or select to edit properties (Workflow properties) to rename, or delete (from the workflow but not Jira).

  • Add a global transition that allows every other status in the workflow to transition to the selected status. Select Allow all statuses to transition to this one in the properties panel for the transition.

  • Change the screen that a transition uses. See Working in text mode for details.

  • Configure advanced transition options, such as triggers, conditions, validators, and post functions. See the Advanced workflow configuration page.

Creating workflows

Configuring workflows

Check out Editing an issue workflow for more information about editing workflow triggers, transitions, validators, and post functions.

In Jira, an issue is either open or closed, based on the value of its resolution field (not its status).

  • An issue is open if its resolution field isn’t set.

  • An issue is closed if its resolution field has a value (fixed or can’t reproduce, for example).

This is true regardless of the issue’s current status (open or in progress, for example). If you need your workflow to force an issue to be open or closed, you will need to set the issue’s resolution field during a transition. There are two ways to do this:

If you copied the system workflow and you wish to rename the workflow transition buttons on the View Issue page, you must delete the following properties from all transitions in the copied workflow:

  • jira.i18n.title
  • jira.i18n.description

Otherwise, the default names (i.e. values of these properties) will persist. Read more about transition properties.

Text mode is an advanced way of working with workflows, and it shows the difference between steps and statuses. In text mode, you work directly with steps. For details, see Working in text mode.

Advanced workflow configuration

Original: https://www.cnblogs.com/freeliver54/p/16024361.html
Author: freeliver54
Title: [转]Jira Work with issue workflows

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/545381/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球