개요

Custom field 는 JIRA 의 강력한 기능중 하나이며 (물론 redmine 이나 기타 다른 이슈 트래커에도 있는 기능이다) 사용자의 필요에 따라 이슈 관리에 필요한 구성요소들을 관리할 수 있다.

필드 관리

Custom field 추가

  1. Issues → Custom Fields → "Add custom field" 클릭

  2. 필드 타입을 선택

  3. 제목과 설명을 기술하고 생성


필드 설정

필수 여부, 사용할 스크린, 사용할 Rendere 설정등

  1. Issues → Fields → Field configurations 선택

  2. 변경할 필드 옆의 설정을 클릭하여 수정



DB 에서 전체 Custom file 및 ID 조회

전체 Custom Field 의 ID 는 JQL에서는 볼 수 없고 해당 DBMS 에 직접 연결해야 볼수 있다. 

select id, cfname, DESCRIPTION from customfield;   
 
| 10501 | Flagged               | Allows to flag issues with impediments.                                                                                          |
| 10502 | Epic/Theme            | Field that will help you regroup issues under an Epic or under a theme.                                                          |
| 10503 | Story Points          | Measurement of complexity and/or size of a requirement.                                                                          |
| 10504 | Business Value        | Measurement of business value of a requirement.                                                                                  |
| 10505 | Global Rank           | Rank field for GreenHopper use only. Please refrain from adding additional fields, doing so would not result in anything useful. |
| 10600 | Planned Start         | Planned start date for issue's activity.                                                                                         |
| 10601 | Planned End           | Planned end date for issue's activity.                                                                                           |
| 10602 | Gantt Options         | Specify: is the issue a milestone or do you want to schedule it manually? 
SQL



REST API 에서 Custom Field 사용

REST API 로 연계시 custom field 는 customfield_ID 형식으로 기술해 준다. 예로 "Story Points" 란 커스텀 필드가 있고 ID가 "10000" 이라면 REST API 에서 해당 필드에 접근할때 customfield_10000 필드로 접근하면 된다.


{
    "fields": {
       "project":
       { 
          "key": "TEST"
       },
       "summary": "Always do right. This will gratify some people and astonish the REST.",
       "description": "Creating an issue while setting custom field values",
       "issuetype": {
          "name": "Bug"
       },       
       "customfield_11050" : {"Value that we're putting into a Free Text Field."}       
   }
}
CODE


Ref