wangwen 2008-5-6 13:53
【jira日记系列】十步完成自定义问题类型及配套工作流
首先对这篇文章做个说明
1这篇文章适合有一点jira基础的人,0基础的人用处不大
2 悬案是指在对日项目中制造(编码)人员对设计提出的疑问
3 这篇文章的工作流设计很不完善(因为仅仅是例子),不要模仿这个设计,我会找时间改进
4 这个文章很长 我会分楼发 请不要断楼
--------------------------------------------------------------------------------------------------------------------
[font=Times New Roman]1 [/font][font=宋体]添加[/font][font=Times New Roman]Issue Types[/font]
[font=Times New Roman] [/font][font=宋体]管理[/font][font=Times New Roman]->Issue Settings->Issue Types[/font]
[font=Times New Roman] [/font][font=宋体]页面下方[/font][font=Times New Roman]Add New Issue Type[/font]
[font=Times New Roman] [/font][font=宋体]名称[/font][font=Times New Roman]: [/font][font=宋体]悬案[/font]
[font=Times New Roman] [/font][font=宋体]描述[/font][font=Times New Roman]: [/font][font=宋体]对设计的疑问[/font]
[font=Times New Roman] [/font][font=宋体]图标[/font][font=Times New Roman]:[/font][font=宋体]个人喜好[/font][font=Times New Roman],[/font][font=宋体]我选了个问号[/font]
[attach]7911[/attach]
[font=Times New Roman]2 [/font][font=宋体]设置[/font][font=Times New Roman]Statuses[/font]
[font=Times New Roman] [/font][font=宋体]管理[/font][font=Times New Roman]->Issue Settings->Statuses
[/font]
[font=Times New Roman] [/font][font=宋体]编辑[/font][font=Times New Roman]open [/font][font=宋体]改名为开始[/font][font=Times New Roman] closed[/font][font=宋体]改名为关闭[/font]
[font=Times New Roman] [/font][font=宋体]添加[/font][font=Times New Roman] [/font][font=宋体]新的[/font][font=Times New Roman]Statuses [/font][font=宋体]回答悬案[/font][font=Times New Roman] [/font][font=宋体]确认回答[/font]
[attach]7912[/attach]
[font=Times New Roman]3 [/font][font=宋体]创建[/font][font=Times New Roman]Screen [/font]
[font=Times New Roman] [/font][font=宋体]管理[/font][font=Times New Roman]->Issue Fields->Screen[/font]
[font=Times New Roman] [/font][font=宋体]添加[/font][font=Times New Roman] [/font][font=宋体]回答悬案窗口[/font][font=Times New Roman] [/font][font=宋体]悬案内容编辑窗口[/font][font=Times New Roman] [/font]
[attach]7913[/attach]
[font=宋体]在操作中选择[/font][font=Times New Roman]configure [/font][font=宋体]如图添加需要的[/font][font=Times New Roman]Fields[/font][font=宋体]([/font][font=Times New Roman]1[/font][font=宋体],[/font][font=Times New Roman]2[/font][font=宋体],[/font][font=Times New Roman]3 [/font][font=宋体]为插件用[/font][font=Times New Roman] [/font][font=宋体]会在后面讲解[/font][font=Times New Roman]9[/font][font=宋体],[/font][font=Times New Roman]10[/font][font=宋体]是做完第[/font][font=Times New Roman]4[/font][font=宋体]步才自动添加的)[/font][font=Times New Roman] [/font]
[font=Times New Roman] [/font][font=宋体]悬案内容编辑窗口[/font][font=Times New Roman] Rename tab to [/font][font=宋体]写悬案[/font][font=Times New Roman] [/font]
[font=Times New Roman] [/font][font=宋体]回答悬案窗口[/font][font=Times New Roman]Rename tab to [/font][font=宋体]回答[/font]
[attach]7914[/attach]
wangwen 2008-5-6 13:58
[font=Times New Roman]4 [/font][font=宋体]设置[/font][font=Times New Roman]Custom Fields
[/font]
[font=Times New Roman] [/font][font=宋体]管理[/font][font=Times New Roman]->Issue Fields->Custom Fields[/font]
[font=Times New Roman] [/font][font=宋体]添加悬案回答[/font][font=Times New Roman] [/font][font=宋体]悬案正文[/font][font=Times New Roman] 2[/font][font=宋体]个[/font][font=Times New Roman]Free Text Field (unlimited text)[/font]
[attach]7915[/attach]
[font=宋体]在操作中选择[/font][font=Times New Roman]Screens
[/font][font=宋体][/font]
[font=宋体][attach]7916[/attach][/font]
[font=宋体][/font]
[font=宋体]将悬案回答[/font][font=Times New Roman] [/font][font=宋体]悬案正文[/font][font=Times New Roman] 2[/font][font=宋体]个[/font][font=Times New Roman]Free Text Field [/font][font=宋体]都与回答悬案窗口[/font][font=Times New Roman] [/font][font=宋体]悬案内容编辑窗口关联[/font]
[font=宋体][font=Times New Roman]5 [/font][font=宋体]设置[/font][font=Times New Roman]Field Configurations[/font]
[font=宋体]管理[/font][font=Times New Roman]->Issue Fields->Field Configurations->Default Field Configuration[/font]
[font=宋体]如图所示点击[/font][font=Times New Roman] Required [/font][font=宋体]把悬案正文设置为必须填写[/font]
[attach]7917[/attach]
[font=Times New Roman]6[font=宋体]创建[/font]Screen Scheme[/font]
[font=Times New Roman]
[font=宋体]管理[/font]-> Issue Fields ->Screen Scheme[/font]
[font=Times New Roman]
[font=宋体]如图创建[/font][/font]
[font=Times New Roman]
[attach]7919[/attach][/font]
[font=Times New Roman]
[/font]
[font=Times New Roman][font=宋体]在操作中选择[/font]Configure [font=宋体]如图设置[/font]
[font=宋体][attach]7918[/attach][/font]
[/font]
[/font]
wangwen 2008-5-6 14:01
[font=Times New Roman]7[/font][font=宋体]设置[/font][font=Times New Roman]Issue Type Screen Scheme[/font]
[font=Times New Roman] [/font][font=宋体]管理[/font][font=Times New Roman]-> Issue Fields -> Issue Type Screen Scheme[/font]
[attach]7920[/attach]
[font=宋体]在操作中选择[/font][font=Times New Roman]Configure [/font][font=宋体]如图设置[/font]
[font=宋体][attach]7921[/attach][/font]
[font=宋体][font=宋体][size=10.5pt]点击增加[/size][/font][size=10.5pt]
[/size][font=宋体][size=10.5pt]结果如图[/size][/font][/font]
[font=宋体]
[/font]
[font=宋体][font=宋体][size=10.5pt][attach]7922[/attach][/size][/font][/font]
[font=宋体]
[/font]
[font=宋体][font=宋体][size=10.5pt][font=Times New Roman]8 [/font][font=宋体]创建[/font][font=Times New Roman]Workflow[/font]
[font=Times New Roman] [/font][font=宋体]管理[/font][font=Times New Roman]->Global Settings->Workflows[/font]
[font=Times New Roman] [/font][font=宋体]添加名称为[/font][font=Times New Roman]xuanan[/font][font=宋体]的工作流[/font][font=Times New Roman]([/font][font=宋体]很郁闷名称必须是[/font][font=Arial][size=7.5pt]ASCII[/size][/font][font=宋体]的[/font]
[font=Times New Roman])[/font]
[attach]7923[/attach]
[font=宋体]在操作中选择[/font][font=Times New Roman]Steps [/font][font=宋体]进入下图[/font]
[font=宋体][attach]7924[/attach][/font]
[/size][/font][/font]
wangwen 2008-5-6 14:06
[font=Arial][size=7.5pt]
[/size][/font][font=宋体]将[/font][font=Times New Roman]open[/font][font=宋体]的[/font][font=Times New Roman]step name[/font][font=宋体]编辑为提出悬案[/font][font=Arial][size=7.5pt][/size][/font]
[font=宋体]分别添加[/font]
[font=Times New Roman]
1 [/font][font=宋体]回答悬案[/font][font=Times New Roman]([/font][b][font=Arial][size=5.5pt]Linked Status[/size][/font][/b][font=宋体]回答悬案[/font][font=Times New Roman])[/font]
[font=Times New Roman]2[/font][font=宋体]确认回答[/font][font=Times New Roman]([/font][b][font=Arial][size=5.5pt]Linked Status[/size][/font][/b][font=宋体]确认回答[/font][font=Times New Roman]) [/font]
[font=Times New Roman]3[/font][font=宋体]解决[/font][font=Times New Roman]([/font][b][font=Arial][size=5.5pt]Linked Status[/size][/font][/b][font=宋体]关闭[/font][font=Times New Roman])[/font]
[font=宋体]如下图[/font][font=Times New Roman]([/font][b][font=Arial][size=5.5pt]Transitions[/size][/font][/b][font=宋体]的内容这一步完成才有[/font][font=Times New Roman])[/font]
[attach]7925[/attach]
[font=Times New Roman][/font]
[font=Times New Roman][/font]
[font=宋体]在提出悬案操作中选择[/font][url=http://localhost:8080/secure/admin/workflows/AddWorkflowTransition!default.jspa?workflowName=xuanan&workflowStep=1][color=windowtext][font=Times New Roman]Add Transition[/font][/color][/url][font=Times New Roman] [/font][font=宋体]如下图设置[/font][font=Times New Roman]([/font][font=宋体]其实[/font][font=Times New Roman]Transition view [/font][font=宋体]应该设置一个悬案确认窗口[/font][font=Times New Roman] [/font][font=宋体]偷个懒下次补上[/font][font=Times New Roman])[/font]
[color=black][font=Arial][attach]7926[/attach][/font][/color]
[color=black][font=Arial][font=宋体]在[/font][url=http://localhost:8080/secure/admin/workflows/ViewWorkflowStep.jspa?workflowName=xuanan&workflowStep=2][color=windowtext][font=宋体]回答悬案[/font][/color][/url][font=宋体]操作中选择[/font][url=http://localhost:8080/secure/admin/workflows/AddWorkflowTransition!default.jspa?workflowName=xuanan&workflowStep=1][color=windowtext][font=Times New Roman]Add Transition[/font][/color][/url][font=Times New Roman] [/font][font=宋体]如下图设置[/font]
[/font][/color][color=black][font=Arial][attach]7927[/attach][/font][/color]
[color=black][font=Arial][font=宋体]在[/font][url=http://localhost:8080/secure/admin/workflows/ViewWorkflowStep.jspa?workflowName=xuanan&workflowStep=2][color=windowtext][font=宋体]确认回答[/font][/color][/url][font=宋体]操作中选择[/font][url=http://localhost:8080/secure/admin/workflows/AddWorkflowTransition!default.jspa?workflowName=xuanan&workflowStep=1][color=windowtext][font=Times New Roman]Add Transition[/font][/color][/url][font=Times New Roman] [/font][font=宋体]如下图设置[/font]
[font=宋体][attach]7928[/attach][/font]
[font=宋体][font=宋体][size=10.5pt]在[/size][/font][size=10.5pt][url=http://localhost:8080/secure/admin/workflows/ViewWorkflowStep.jspa?workflowName=xuanan&workflowStep=2][color=windowtext][font=宋体]确认回答[/font][/color][/url][/size][font=宋体][size=10.5pt]操作中选择[/size][/font][size=10.5pt][url=http://localhost:8080/secure/admin/workflows/AddWorkflowTransition!default.jspa?workflowName=xuanan&workflowStep=1][color=windowtext]Add Transition[/color][/url] [/size][font=宋体][size=10.5pt]如下图设置[/size][/font][/font]
[font=宋体]
[/font]
[font=宋体][font=宋体][size=10.5pt][attach]7929[/attach][/size][/font][/font]
[font=宋体]
[/font]
[font=宋体][font=宋体][size=10.5pt][font=Times New Roman]9[/font][font=宋体]建立[/font][font=Times New Roman]Workflow Schemes[/font]
[font=宋体]管理[/font][font=Times New Roman]-> Schemes ->Workflow Schemes[/font]
[font=宋体]名称:悬案管理[/font][font=Times New Roman] [/font]
[font=宋体]再操作中选择[/font][font=Times New Roman]Workflows [/font]
[/size][/font][/font][attach]7930[/attach]
[color=black][font=宋体]选择[/font][/color][color=black][font=Arial][url=http://localhost:8080/secure/admin/AddWorkflowSchemeEntity!default.jspa?schemeId=10000][color=black]Assign a workflow[/color][/url][/font][/color]
[font=宋体][attach]7931[/attach][/font]
[font=宋体][font=宋体]如下图设置[/font]
[font=宋体][attach]7932[/attach][/font]
[/font][/font][/color]
wangwen 2008-5-6 14:12
[font=Times New Roman]10 [/font][font=宋体]建立项目并引入该工作流[/font]
[font=宋体]第一步很简单[/font][font=Times New Roman] [/font][font=宋体]选择定义的[/font][font=Times New Roman]Workflow Schemes [/font][font=宋体]就可以了[/font]
[font=宋体]第二步如下图设置[/font]
[font=宋体][attach]7933[/attach][/font]
[font=宋体]----------------------------------------------------------[/font]
[font=宋体]后记:第一次写东西 排版很乱 感谢[url=http://www.fangwai.net/bbs/]http://www.fangwai.net/bbs/[/url]的版主[size=2][color=navy][b]jiracn 和SCM的诸位[/b][/color] 没有你们的帮助就没有这篇文章[/size][/font]
[font=宋体][size=2]
[/size][/font]
[font=宋体][size=2]下期预告 插件系列之jira-charting-plugin[/size][/font]
SCM_Jane 2008-5-6 16:08
向动画狂学习!
谢谢楼主的整理和贴图
本来碍于JIRA的繁琐配置我都打算放弃的
看了楼主辛辛苦苦劳动的成果
我决定坚持下去啦!
提个小意见哈,下次能不能把图再弄大弄清晰一点咧!
还有,在群里看到楼主说也了解Mantis
我也想比较一下这两个工具的使用
以后可不可以也开贴说一下呢
再次拜谢楼主!::em42:: ::em71::
懂你 2008-5-6 22:30
回复 8# 的帖子
关于图片的话,你点击即可看到大图。
wangwen 2008-5-7 09:32
回复 8# 的帖子
实话实说JIRA的配置是很麻烦 整个过程是个下降曲线 主要工作量集中在初期的配置
等我把这个日记系列写完了 就开一个帖子比较一下Mantis
asukataozi 2008-5-7 18:22
Jira中流程需要在项目初期都定义好,最好在使用的时候不要去改流程,很容易把数据弄乱的,另外项目很多的话,可以归类,类似的项目共用流程,用Project Role来控制全县,这样维护起来好很多,不然头大的很!唉...正在为Jira头疼中呢!项目多且不说,每个项目流程都不一样,还中途会改变流程,郁闷啊~~!
wangwen 2008-5-7 19:51
中途变更流程是很郁闷。。。。。不到万不得已不要这么做
scmscmscm 2008-5-14 10:18
我在等预告的下期:jira-charting的Plugin,什么时候能出来?
shhuangfy 2008-5-14 11:15
asukataozi
你说的项目多而流程不多
能不能说一下你们都用到了哪些流程呀
我们公司现在就是:开始问题,停止问题,解决问题,重新开启问题
wangwen 2008-5-14 11:22
开始问题,停止问题,解决问题,重新开启问题
这个是叫做step 不是workflow
liullscm 2008-5-28 14:26
与 11# 楼 asukataozi 有同感,
最好在使用的时候不要去改流程(workflow),很容易把数据弄乱.我就遇到过一次,结果我必须用管理员权限手动将流程都改回来.