stop requiring description. this is not a mandated jira field for all screens (#46023)
This commit is contained in:
parent
f8685e4819
commit
260512459d
2 changed files with 6 additions and 2 deletions
2
changelogs/fragments/jira_fix_description_field.yaml
Normal file
2
changelogs/fragments/jira_fix_description_field.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- jira - description field is not always required
|
|
@ -284,9 +284,11 @@ def create(restbase, user, passwd, params):
|
|||
createfields = {
|
||||
'project': {'key': params['project']},
|
||||
'summary': params['summary'],
|
||||
'description': params['description'],
|
||||
'issuetype': {'name': params['issuetype']}}
|
||||
|
||||
if params['description']:
|
||||
createfields['description'] = params['description']
|
||||
|
||||
# Merge in any additional or overridden fields
|
||||
if params['fields']:
|
||||
createfields.update(params['fields'])
|
||||
|
@ -370,7 +372,7 @@ def link(restbase, user, passwd, params):
|
|||
|
||||
|
||||
# Some parameters are required depending on the operation:
|
||||
OP_REQUIRED = dict(create=['project', 'issuetype', 'summary', 'description'],
|
||||
OP_REQUIRED = dict(create=['project', 'issuetype', 'summary'],
|
||||
comment=['issue', 'comment'],
|
||||
edit=[],
|
||||
fetch=['issue'],
|
||||
|
|
Loading…
Reference in a new issue