728x90
코맨트 추가
# https://jira.readthedocs.io/
from jira import JIRA
server = "https://"
user = ""
password = ""
server = {'server': server}
jira = JIRA(options=server, basic_auth=(user, password))
issue = jira.issue("TEST-5")
jira.add_comment ( issue , "Comment text" )
워크로그 조회
# https://jira.readthedocs.io/
from jira import JIRA
server = "https://"
user = ""
password = ""
server = {'server': server}
jira = JIRA(options=server, basic_auth=(user, password))
issues_in_project = jira.search_issues(
'worklogAuthor = testuser',
fields=["worklog"],
maxResults=False
)
for value in issues_in_project:
print(value.fields.worklog.worklogs)
log_entry_count = len(value.fields.worklog.worklogs)
for i in range(log_entry_count):
print(
value.key,
value.fields.worklog.worklogs[i].timeSpent,
value.fields.worklog.worklogs[i].updated,
value.fields.worklog.worklogs[i].updateAuthor
)
728x90
'Python' 카테고리의 다른 글
파이썬으로 메일 보내기 (gmail) (0) | 2020.07.30 |
---|---|
scoop + python 으로 안드로이드 UI 자동화 (0) | 2020.04.15 |
python+selenium+headless chrome+openpyxl 예제 (0) | 2019.02.07 |
[Mac] pipenv 환경에 장고 설치 (0) | 2018.08.29 |
python selenium remote - 원격 PC 크롬 실행 (0) | 2018.07.25 |