Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

定义字段

编写脚本

import com.atlassian.jira.component.ComponentAccessor

final Long customFieldName1 = 11700L;//期望效果
final Long customFieldName2 = 11701L;//成功信心

def customField1 = ComponentAccessor.customFieldManager.getCustomFieldObject(customFieldName1);
def customField2 = ComponentAccessor.customFieldManager.getCustomFieldObject(customFieldName2);

def cfValue1 = issue.getCustomFieldValue(customField1) as double; #获得当前问题的期望效果的值
def cfValue2 = issue.getCustomFieldValue(customField2) as double; #获得当前问题的成功信心的值

cfValue1+cfValue2  #将成功信心和成功信心累加



  • No labels