• jira 根据项目(project)获取优先级(proirity)


     1 import com.atlassian.jira.component.ComponentAccessor
     2 import com.atlassian.jira.issue.customfields.manager.OptionsManager
     3 import com.atlassian.jira.issue.fields.config.FieldConfig
     4 import com.atlassian.jira.issue.fields.config.FieldConfigScheme
     5 import com.atlassian.jira.issue.fields.config.manager.FieldConfigSchemeManager
     6 import com.atlassian.jira.issue.fields.config.manager.PrioritySchemeManager
     7 import com.atlassian.jira.project.Project
     8 
     9 def project = ComponentAccessor.getProjectManager().getProjectObj(10000L)
    10 def schemeManager = ComponentAccessor.getComponent(PrioritySchemeManager)
    11 def scheme = schemeManager.getScheme(project)
    12 def fieldConfig = scheme.getConfigs().get(null)
    13 schemeManager.getOptions(fieldConfig)
    14 
    15 schemeManager.getPrioritiesFromIds(schemeManager.getOptions(fieldConfig)).each {log.warn(it.name)}
  • 相关阅读:
    HDU1196 ZOJ2417 Lowest Bit
    HDU1008 ZOJ2108 Elevator
    HDU2614 Beat
    HDU2057 A + B Again
    POJ3984 迷宫问题
    HDU1013 POJ1519 Digital Roots
    HDU2051 Bitset
    HDU2037 今年暑假不AC
    ACM入门练习与递推小结
    HDU2046 骨牌铺方格【递推】
  • 原文地址:https://www.cnblogs.com/blog-cq/p/12605189.html
Copyright © 2020-2023  润新知