File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 77
88
99class Jira (AtlassianRestAPI ):
10+
11+ def get_server_info (self , do_health_check = False ):
12+ """
13+ Returns general information about the current Jira server.
14+ with health checks or not.
15+ """
16+ if do_health_check :
17+ check = True
18+ else :
19+ check = False
20+ return self .get ('rest/api/2/serverInfo' , params = {"doHealthCheck" : check })
21+
1022 def reindex_status (self ):
1123 return self .get ('rest/api/2/reindex' )
1224
Original file line number Diff line number Diff line change 1+ # coding=utf-8
2+ from atlassian import Jira
3+ from pprint import pprint
4+
5+ """ How to get server info with health check"""
6+
7+ jira = Jira (
8+ url = "https://jira.example.com/" ,
9+ username = 'admin' ,
10+ password = '*******' )
11+
12+ pprint (jira .get_server_info (True ))
You can’t perform that action at this time.
0 commit comments