【jira】工作流设置

Posted on Tue 21 July 2009 in 我用(IT)


- About JIRA Workflow

A JIRA workflow is the set of steps and transitions an issue goes through during its lifecycle.
Workflows typically represent business processes.

• JIRA Enterprise supports multiple active workflows. Each workflow can be associated with particular projects and (optionally) particular issue type(s).
• JIRA Professional supports only one active workflow.

一个  项目可以设置一个 Workflow Scheme, 一个 Workflow Scheme 包含 一个 默认的Workflow和多个 于Issue Type关联的Workflow。


- 创建工作流的简要说明

To create a complete new workflow, you need to:
• provide a name and description to identify the workflow
//为Workflow起个名字,例如服务器软件发布流程什么的
• add the steps the workflow will have, and link them to statuses within JIRA
//嗯,需要先定义好流程中的状态,然后再建流程步骤,步骤要关联状态
• create transitions between the different steps
//创建步骤间的转换
• enable the workflow and assign it to a workflow scheme
把这个Workflow放到一个Workflow Scheme中

- 构建工作流的详细步骤

1. 建立要用的Issue Type

Issue Type会属于Issue Type Scheme
1) Issue的字段
Custom Fields
2) Issue Type和Workflow绑定
通过Workflow Schemes里面的Workflows来对应Issue Type<==>Workflow

2. 构建对应Issue Type的Workflow

1) 首先设计整体流程(Jira外面)
整体流程包括步骤(Step),及其对应的状态(Status),以及Step的操作(Transition)

2) 添加状态(Status)
一次性的添加整个流程包括的状态

3) 添加步骤(Step)
创建流程(Workflow),在其中添加步骤,每个步骤都要指定其对应的状态

4)添加步骤对应的操作(Transition)
创建Step变化到其它状态的操作,包括目标状态、操作视图(Transition View)等
可能需要一个对应此流程的Screen Scheme

5)关联Issue type和Screen Scheme
添加一个Issue type screen scheme来设置issue type跟screen scheme的关联

6)编辑操作
操作条件(Conditions)   
验证(Validators):主要是用户操作的权限  
后置方法(Post Functions)中,关联事件(Event)

7)全局考虑
Permission(工作流权限,谁或哪些角色可以进行工作流操作)、event(一般会使用到邮件通知event),screen(每一步工作流响应需要绑定到哪个screen)。
workflow一旦被绑定到项目,则不允许修改了,必须先取消绑定,再修改。