Skip to content

Commit

Permalink
Added support to Bugsy 0.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalvis Kolesnikovs committed Nov 13, 2019
1 parent 70af410 commit f3cc614
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This simple script exports all bugzilla issues to one csv file. Jira got specifi
1. First of all make sure you got [python 3](https://www.python.org/downloads/) installed.
2. Download this repository to your local machine: `git clone https://github.com/Kalvisan/bugzilla2jira.git bz2jira` next go to folder `cd bz2jira`
3. Install all needed python library `pip3 install -r requirements.txt`
1. Attention: I created this script while Bugsy wasn't released 0.11.1+ version to public in pip, so I installed newest version by `pip3 install git+https://github.com/AutomatedTester/Bugsy.git`
4. Now you can start editing config file as you need. `open local config example file` more info how to edit file below
5. You are ready now to start exporting data from bugzilla to local csv file
6. Basic export example: `python3 bz2csv.py -c config` a bit more advanced commands you can see below.
Expand Down
4 changes: 2 additions & 2 deletions bz2csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ def main(arguments):
# Jira require you to fill other comment columns empty
row = append_array(row, "", int(csv_max_comment) - len(comments))

# !!! This function wasn't in source code, so I made my own code fix for bugsy
attachments = bug.get_attachments()
# Bugsy just added attachment support, but there wasn't enough documentation, so I use raw data
attachments = bug.get_attachments().to_dict()
if len(attachments) > max_attachments:
max_attachments = len(attachments)

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ idna==2.6
oauthlib==2.0.6
ordereddict==1.1
pbr==3.1.1
bugsy>=0.10.1
bugsy>=0.11.1
requests==2.20.0
requests-oauthlib==0.8.0
requests-toolbelt==0.8.0
Expand Down

0 comments on commit f3cc614

Please sign in to comment.