补充一:JIRA不完全手册
关键字: jira database renderer 1.格式化description和comment
需要用到jira中一个叫做renderer的插件,这个插件已经默认安装了(3.13)
具体步骤是
1)Administration-field configuration,选择需要配置的那个configuration点击configure进去
2)Comment这个field后面有个Renderer的链接,点击后选择wiki style render就有强大的格式了。默认的Default Text Renderer只能给JRA-111这种JIRA key加上链接
wiki style renderer有很多格式,具体参见
http://www.atlassian.com/software/jira/docs/v3.13.2/configurerenderers.html
http://www.atlassian.com/software/jira/docs/v3.13.2/renderers_overview.html#wiki_macros
2.component lead
在项目配置界面中有一个Select assignees for components ,select这个词上有个链接,进去选择适合的人就可以了
3. assign screen cannot be configured
这是JIRA需要改进的一个地方,见官方JIRA
http://jira.atlassian.com/browse/JRA-8874
4. 编辑custom field中的select list 类型的options
目前JIRA无法实现这个功能,见
http://jira.atlassian.com/browse/JRA-2983
但是可以通过手工改数据库数据来实现。
steps below maybe can help you:
1).update customfieldoption set customvalue='new value' where customvalue='old value';
2).update customfieldvalue set stringvalue='new value' where stringvalue='old value';
3).restart JIRA, jira load these options in memory
4). reindex
JIRA中Closed issues是没法修改的,所以经常需要到数据库手工修改数据,修改前切记备份好数据!
JIRA的数据库设计很规范、工整,所以修改起来应该是得心应手的,具体的数据库设计文档见
http://confluence.atlassian.com/display/JIRA/Database+Schema
5.更改resolution.
resolution可以通过Edit来修改,但是一般Resolution是必输的,对于没有resolution的issue用Edit将带来问题,所以最好通过sql来修改:
update jiraissue set resolution='x' where id='xxx'
resolition的定义存放在resolutio表中,以下是经过我修改过和原有的一些resolution id:
ID SEQUENCE pname
1 1 Fixed
2 2 Won't Fix
3 3 Duplicate
4 4 Need more Info
5 5 Cannot Reproduce
6 6 Not Fixed
7 7 Not Bug
6.修改fix version/s
- select * from jiraissue where pkey='JRA-xx'
- --返回issue的id,填入以下insert语句的source_node_id中
- select * from projectversion where vname='xxx'
- --返回version id,填入以下insert语句的sink_node_id中
- insert into nodeassociation
- (source_node_id,source_node_entity,sink_node_id,sink_node_entity,association_type)
- values (11492,'Issue',10020,'Version','IssueFixVersion');
- --insert之后需要到jira中re-inex一下
select * from jiraissue where pkey='JRA-xx'
--返回issue的id,填入以下insert语句的source_node_id中
select * from projectversion where vname='xxx'
--返回version id,填入以下insert语句的sink_node_id中
insert into nodeassociation
(source_node_id,source_node_entity,sink_node_id,sink_node_entity,association_type)
values (11492,'Issue',10020,'Version','IssueFixVersion');
--insert之后需要到jira中re-inex一下
7.对一个closed issue的custom field进行编辑
修改custom field分为两种情况:
1)某个issue的custom field值为空,那就得insert一条记录:
修改customfieldvalue表,这张表的主键id是自增长的,所以要小心赋一个不存在的比现有最大id小的id,然后执行如下sql:
- insert into customfieldvalue (id,issue,customfield,numbervalue)
- values (10090,11327,10040,223)
insert into customfieldvalue (id,issue,customfield,numbervalue)
values (10090,11327,10040,223)
2)custom field有值,需要update这个值
- select * from jiraissue where pkey='JRA-2'
- --返回issue id
- update customfieldvalue set numbervalue=265 where issue=11390 and numbervalue=266
- --根据值就能判断需要更新哪个字段哪条记录,如果不能定位则加一个条件customfield=xxx