Skip to content

Commit 2a77f06

Browse files
committed
PYAPI-29 Portfolio: Import Issues and Search Filter
1 parent 53aac18 commit 2a77f06

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

PKG-INFO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 1.1
22
Name: atlassian-python-api
3-
Version: 0.8.4
3+
Version: 0.8.5
44
Author: Matt Harasymczuk
55
Author-email: code at mattagile com
66
Maintainer: Matt Harasymczuk

atlassian/portfolio.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,16 @@ def filters(self, query_string):
6868
url = '/rest/roadmap/1.0/system/filters.json?queryString={0}'.format(query_string)
6969
return self.get(url)
7070

71-
def import_issues(self, jql, limit=100):
71+
def import_issues(self, jql, limit=100, exclude_linked=True, estimation_method='estimates', epic_fetch_enabled=True,
72+
load_story_points=True):
7273
url = '/rest/roadmap/1.0/system/import.json'
7374
data = {'planId': str(self.plan_id),
7475
'query': jql,
75-
'excludeLinked': False,
76-
'epicFetchEnabled': True,
76+
'excludeLinked': exclude_linked,
77+
'epicFetchEnabled': epic_fetch_enabled,
7778
'maxResults': limit,
78-
'estimationMethod': 'estimates',
79-
'loadStoryPoints': True}
79+
'estimationMethod': estimation_method,
80+
'loadStoryPoints': load_story_points}
8081
self.post(url, data=data)
8182

8283
def dependencies(self, workitem_id, plan_version):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
name='atlassian-python-api',
99
description='Atlassian Python API',
1010
license='Apache License 2.0',
11-
version='0.8.4',
11+
version='0.8.5',
1212
download_url='https://github.com/MattAgile/atlassian-python-api',
1313

1414
author='Matt Harasymczuk',

0 commit comments

Comments
 (0)