当前位置: 首页>>代码示例>>Python>>正文


Python JIRA.application_properties方法代码示例

本文整理汇总了Python中jira.JIRA.application_properties方法的典型用法代码示例。如果您正苦于以下问题:Python JIRA.application_properties方法的具体用法?Python JIRA.application_properties怎么用?Python JIRA.application_properties使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在jira.JIRA的用法示例。


在下文中一共展示了JIRA.application_properties方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: JIRA

# 需要导入模块: from jira import JIRA [as 别名]
# 或者: from jira.JIRA import application_properties [as 别名]
# This script shows how to connect to a JIRA instance with a
# username and password over HTTP BASIC authentication.

from jira import JIRA

# By default, the client will connect to a JIRA instance started from the Atlassian Plugin SDK.
# See
# https://developer.atlassian.com/display/DOCS/Installing+the+Atlassian+Plugin+SDK
# for details.
jira = JIRA(basic_auth=("admin", "admin"))  # a username/password tuple

# Get the mutable application properties for this server (requires
# jira-system-administrators permission)
props = jira.application_properties()

# Find all issues reported by the admin
issues = jira.search_issues("assignee=admin")

# Find the top three projects containing issues reported by admin
from collections import Counter

top_three = Counter([issue.fields.project.key for issue in issues]).most_common(3)
开发者ID:dualsky,项目名称:jira,代码行数:24,代码来源:basic_auth.py

示例2: JIRA

# 需要导入模块: from jira import JIRA [as 别名]
# 或者: from jira.JIRA import application_properties [as 别名]
# This script shows how to connect to a JIRA instance with a
# username and password over HTTP BASIC authentication.

from jira import JIRA

# By default, the client will connect to a JIRA instance started from the Atlassian Plugin SDK.
# See https://developer.atlassian.com/display/DOCS/Installing+the+Atlassian+Plugin+SDK for details.

authed_jira = JIRA(server='https://ssesnexgen2055.atlassian.net', basic_auth=('[email protected]', '5hp27ct#NNs2by;H'))

# Get the mutable application properties for this server (requires jira-system-administrators permission)
props = authed_jira.application_properties()

# Find all issues reported by the admin
#issues = authed_jira.search_issues('FOR_PROCESSING ~ "MakeSubmission"')
issues = authed_jira.search_issues('project = SSES2055 AND issuetype = Candidate AND resolution = Unresolved')
issue_catalog = []

for i in issues:
    self = i.self
    FirstName = i.fields.customfield_10026
    MiddleName = i.fields.customfield_10027
    LastName = i.fields.customfield_10028
    Company = i.fields.customfield_10029
    peopleid = i.fields.customfield_10030
    PrimaryPhone = i.fields.customfield_10031
    AlternatePhone = i.fields.customfield_10032
    Addressentryid = i.fields.customfield_10033
    AddressLine1 = i.fields.customfield_10034
    AddressLine2 = i.fields.customfield_10035
    AddressCity = i.fields.customfield_10036
开发者ID:ZacKnaus,项目名称:JIRA-Onboarding,代码行数:33,代码来源:processor.py


注:本文中的jira.JIRA.application_properties方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。