diff options
author | Michal Galet <michal.galet@gmail.com> | 2016-12-12 10:18:24 +0100 |
---|---|---|
committer | Michal Galet <michal.galet@gmail.com> | 2016-12-12 10:18:24 +0100 |
commit | 343c131069c76fe68900d95b2a3e996e25e5c9c7 (patch) | |
tree | 7164610b35aeb0b88f6753a9fa099a26b6b0cfaa /gitlab/objects.py | |
parent | 932ccd2214fc41a8274626397c4a88a3d6eef585 (diff) | |
download | gitlab-343c131069c76fe68900d95b2a3e996e25e5c9c7.tar.gz |
Fix JIRA service editing for GitLab 8.14+
GitLab simplified the configuration for JIRA service and renamed most of
the fields. To maintain backward compatibility all mandatory fields were
moved to optional section.
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r-- | gitlab/objects.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py index 2560ba4..eaae9c6 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -1992,8 +1992,16 @@ class ProjectService(GitlabObject): 'server')), 'irker': (('recipients', ), ('default_irc_uri', 'server_port', 'server_host', 'colorize_messages')), - 'jira': (('new_issue_url', 'project_url', 'issues_url'), - ('api_url', 'description', 'username', 'password')), + 'jira': (tuple(), ( + # Required fields in GitLab >= 8.14 + 'url', 'project_key', + + # Required fields in GitLab < 8.14 + 'new_issue_url', 'project_url', 'issues_url', 'api_url', + 'description', + + # Optional fields + 'username', 'password')), 'pivotaltracker': (('token', ), tuple()), 'pushover': (('api_key', 'user_key', 'priority'), ('device', 'sound')), 'redmine': (('new_issue_url', 'project_url', 'issues_url'), |