本文整理汇总了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)
示例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