Skip to content

Commit 343c131

Browse files
committed
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.
1 parent 932ccd2 commit 343c131

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

gitlab/objects.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -1992,8 +1992,16 @@ class ProjectService(GitlabObject):
19921992
'server')),
19931993
'irker': (('recipients', ), ('default_irc_uri', 'server_port',
19941994
'server_host', 'colorize_messages')),
1995-
'jira': (('new_issue_url', 'project_url', 'issues_url'),
1996-
('api_url', 'description', 'username', 'password')),
1995+
'jira': (tuple(), (
1996+
# Required fields in GitLab >= 8.14
1997+
'url', 'project_key',
1998+
1999+
# Required fields in GitLab < 8.14
2000+
'new_issue_url', 'project_url', 'issues_url', 'api_url',
2001+
'description',
2002+
2003+
# Optional fields
2004+
'username', 'password')),
19972005
'pivotaltracker': (('token', ), tuple()),
19982006
'pushover': (('api_key', 'user_key', 'priority'), ('device', 'sound')),
19992007
'redmine': (('new_issue_url', 'project_url', 'issues_url'),

0 commit comments

Comments
 (0)