From c8c43ee74fa58c1011a404c2a0f296a0042451e9 Mon Sep 17 00:00:00 2001 From: Michal Galet Date: Tue, 13 Sep 2016 09:30:56 +0200 Subject: [PATCH] JIRA service - add api_url to optional attributes The api_url attribute is mandatory at least since GitLab 8.11. Otherwise server returns gitlab.exceptions.GitlabUpdateError: 400: 400 (Bad request) "api_url" not given. Keep it as optional to maintain backward compatibility with older GitLab versions. --- gitlab/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/objects.py b/gitlab/objects.py index be0dbef3b..bafd0e5bb 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -1788,7 +1788,7 @@ class ProjectService(GitlabObject): 'irker': (('recipients', ), ('default_irc_uri', 'server_port', 'server_host', 'colorize_messages')), 'jira': (('new_issue_url', 'project_url', 'issues_url'), - ('description', 'username', 'password')), + ('api_url', 'description', 'username', 'password')), 'pivotaltracker': (('token', ), tuple()), 'pushover': (('api_key', 'user_key', 'priority'), ('device', 'sound')), 'redmine': (('new_issue_url', 'project_url', 'issues_url'),