其他分享
首页 > 其他分享> > [转]Jira Work with issue workflows

[转]Jira Work with issue workflows

作者:互联网

本文转自:https://support.atlassian.com/jira-cloud-administration/docs/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.

Another option is to import workflows from the Atlassian Marketplace.

 

You need to log in as a user with the Administer Jira global permission to access and manage workflows.

 Here's an example of a default workflow:

Example of a default workflow in Jira Cloud

Statuses and transitions

Two concepts define a workflow:

  1. Statuses: the steps in your team’s working process that describe the state of a task.

  2. Transitions: usually, how a piece of work can move between statuses. In order for an issue to move between two statuses, a transition must exist. A transition is a one-way link, so if an issue needs to move back and forth between two statuses, two transitions need to be created. The available workflow transitions for an issue are listed on the View issue screen. Transitions can also be "looped," meaning the status remains the same. These transitions are used to open transition screens so users can perform actions without setting a new status or for workflow triggers.

Active and inactive workflows

There are slight differences between editing an inactive and 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.

Workflow status

Description

Inactive workflow

An inactive workflow is a workflow that is not currently being used by any projects. Because there are no issues currently transitioning through an inactive workflow, you can edit the workflow's steps and transitions directly. For details on activating a workflow, see steps below. For more detailed information, see Working in text mode.

 

Active workflow

An active workflow is a workflow that is currently being used by one or more projects. When you edit an active workflow, Jira first creates a draft of it. When you've finished, you can publish your draft and, optionally, save your original workflow as an inactive backup.

The following limitations apply when editing the draft for an active workflow:

To make any of the modifications listed above, you need to copy the workflow, modify the copy, and then activate it.

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: 

  1. Select

  1. > Issues.

  2. Click Workflow schemes.

  3. Either click Add workflow scheme or edit an active workflow scheme. 

  4. Add your workflow to the scheme. (See Configuring workflow schemes for more detailed information.)

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):

  1. In the sidebar, click Issue type schemes.

  2. Click Associate to begin the migration process.

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:

  1. Select

  1. > Issues.

  2. Click Workflows Edit your selected workflow.

  3. Click the Text tab > Add Transition, then fill in the details. 

In the Transition View field, select either:

 

You can view workflow statuses and transitions in company-managed projects. Click the status dropdown when viewing an issue and choose View workflow.

Adding a status to a workflow

  1. Select

  1. > Issues.

  2. Click Statuses Add status.

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:

  1. Select

  1. > Issues.

  2. Click Workflows Edit your selected workflow.

  3. Click Add Transition.

  4. Select a From status. If you choose Any status, your issue action will be able to be performed from anywhere in the workflow. Otherwise, it can only be from the status you choose.

  5. For To status, select Itself.

  6. Choose a name and fill in the rest of the details, then select Add when you're done.

 

Add post functions to the transition to trigger a particular event when the issue action is used.

Issue actions show up on the new issue view next to the status like this:

Issue actions that show up on the new issue view next to the status

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:

 

Creating workflows

Check out Adding and deleting an issue workflow for more information on the ways to import and create workflows. 

Configuring workflows

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

Setting the resolution field

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

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:

Renaming workflow transition buttons

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:

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

Working in text mode

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

See the documentation on Advanced workflow configuration.

标签:Jira,status,transition,workflow,Work,transitions,issue,your
来源: https://www.cnblogs.com/freeliver54/p/16024361.html