python获取jira字段


#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2018-10-29 15:35
# @Author  : wzz
# @Site    : 
# @File    : jira.py
# @Software: PyCharm

#coding=utf-8
from jira import JIRA

jira_server = 'http://192.168.12.12:8888'
jira_username = 'wuuuuu'
jira_password = 'qqqqq'

myjira = JIRA(jira_server,basic_auth=(jira_username,jira_password))
myissue = myjira.issue('JUNO-1641');
missue = myissue.fields.customfield_10718.displayName
summary = myissue.fields.customfield_10207;
print(missue, summary)

 

你可能感兴趣的:(python,jira)