@@ -2586,7 +2586,36 @@ def jql(self, jql, fields="*all", start=0, limit=None, expand=None, validate_que
2586
2586
fixed system limits. Default by built-in method: 50
2587
2587
:param expand: OPTIONAL: expand the search result
2588
2588
:param validate_query: Whether to validate the JQL query
2589
- :param advanced_mode: Make an advanced mode
2589
+ :return:
2590
+ """
2591
+ params = {}
2592
+ if start is not None :
2593
+ params ["startAt" ] = int (start )
2594
+ if limit is not None :
2595
+ params ["maxResults" ] = int (limit )
2596
+ if fields is not None :
2597
+ if isinstance (fields , (list , tuple , set )):
2598
+ fields = "," .join (fields )
2599
+ params ["fields" ] = fields
2600
+ if jql is not None :
2601
+ params ["jql" ] = jql
2602
+ if expand is not None :
2603
+ params ["expand" ] = expand
2604
+ if validate_query is not None :
2605
+ params ["validateQuery" ] = validate_query
2606
+ url = self .resource_url ("search" )
2607
+ return self .get (url , params = params )
2608
+
2609
+ def jql_get_list_of_tickets (self , jql , fields = "*all" , start = 0 , limit = None , expand = None , validate_query = None ):
2610
+ """
2611
+ Get issues from jql search result with all related fields
2612
+ :param jql:
2613
+ :param fields: list of fields, for example: ['priority', 'summary', 'customfield_10007']
2614
+ :param start: OPTIONAL: The start point of the collection to return. Default: 0.
2615
+ :param limit: OPTIONAL: The limit of the number of issues to return, this may be restricted by
2616
+ fixed system limits. Default by built-in method: 50
2617
+ :param expand: OPTIONAL: expand the search result
2618
+ :param validate_query: Whether to validate the JQL query
2590
2619
:return:
2591
2620
"""
2592
2621
params = {}
0 commit comments