Skip to end of metadata
Go to start of metadata

이 문서는 ScriptRunner Groovy 스크립트 사용에 대한 가이드를 공유하기 위해 작성되었다. 


Jira Custom Field에 특정 값 채우기

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.issue.ModifiedValue
import com.atlassian.jira.issue.util.DefaultIssueChangeHolder

def issue = event.issue as Issue
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def tgtField = customFieldManager.getCustomFieldObjects(event.issue).find {it.name == "Progress Value"}
def changeHolder = new DefaultIssueChangeHolder()
tgtField.updateValue(null, issue, new ModifiedValue(issue.getCustomFieldValue(tgtField), new Double(100)), changeHolder)                    
  • No labels