-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjiraIssueDownloader.py
More file actions
35 lines (26 loc) · 1.13 KB
/
jiraIssueDownloader.py
File metadata and controls
35 lines (26 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from jira import JIRA
import sys
options = {'server': 'https://absrivathsa.atlassian.net/','verify':False, 'basic_auth':('absrivathsa@deloitte.com','YQeAsuoJFQ8RfK7PVHDK8247')}
jira = JIRA(options)
#issue = jira.issue(sys.argv[1])
#summary = issue.fields.summary
#description = issue.fields.description
#status = issue.fields.status
#testing_type = issue.fields.testing.type
jira_id = sys.argv[1]
summary = "This is a summary"
description = "This is a description \n and it is multiple lines"
status = "In Progress"
testing_type = "SIT"
file_object = open('releaseNotes.html','a')
file_object.write('\n\t\t\t<tr>')
file_object.write('\n\t\t\t\t<td>'+ jira_id + '</td>')
file_object.write('\n\t\t\t\t<td>'+ summary + '</td>')
file_object.write('\n\t\t\t\t<td>'+ description + '</td>')
file_object.write('\n\t\t\t\t<td>'+ status + '</td>')
file_object.write('\n\t\t\t\t<td>'+ testing_type + '</td>')
file_object.write('\n\t\t\t</tr>')
file_object.close()
#print(issue.fields.project.key) # 'JRA'
#print(issue.fields.issuetype.name) # 'New Feature'
#print(issue.fields.reporter.displayName) # 'Mike Cannon-Brookes [Atlassian]'