add possibility to link to an existing redmine issue (#40109)
This commit is contained in:
parent
73ad6c7f4a
commit
8a648ceb73
|
@ -114,3 +114,5 @@ class RedmineOptionsForm(forms.Form):
|
|||
class RedmineNewIssueForm(forms.Form):
|
||||
title = forms.CharField(max_length=200, widget=forms.TextInput(attrs={'class': 'span9'}))
|
||||
description = forms.CharField(widget=forms.Textarea(attrs={'class': 'span9'}))
|
||||
issue_no = forms.CharField(max_length=10, widget=forms.TextInput(attrs={'class': 'span9'}), required=False,
|
||||
help_text='This will link the sentry entry to an existing issue instead of creating a new one.')
|
||||
|
|
|
@ -73,6 +73,8 @@ class RedminePlugin(IssuePlugin):
|
|||
"""
|
||||
Create a Redmine issue
|
||||
"""
|
||||
if form_data.get('issue_no'): # link to existing issue
|
||||
return form_data.get('issue_no')
|
||||
client = self.get_client(group.project)
|
||||
default_priority = self.get_option('default_priority', group.project)
|
||||
if default_priority is None:
|
||||
|
|
Reference in New Issue