|
|
@ -284,9 +284,11 @@ def create(restbase, user, passwd, params):
|
|
|
|
createfields = {
|
|
|
|
createfields = {
|
|
|
|
'project': {'key': params['project']},
|
|
|
|
'project': {'key': params['project']},
|
|
|
|
'summary': params['summary'],
|
|
|
|
'summary': params['summary'],
|
|
|
|
'description': params['description'],
|
|
|
|
|
|
|
|
'issuetype': {'name': params['issuetype']}}
|
|
|
|
'issuetype': {'name': params['issuetype']}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if params['description']:
|
|
|
|
|
|
|
|
createfields['description'] = params['description']
|
|
|
|
|
|
|
|
|
|
|
|
# Merge in any additional or overridden fields
|
|
|
|
# Merge in any additional or overridden fields
|
|
|
|
if params['fields']:
|
|
|
|
if params['fields']:
|
|
|
|
createfields.update(params['fields'])
|
|
|
|
createfields.update(params['fields'])
|
|
|
@ -370,7 +372,7 @@ def link(restbase, user, passwd, params):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Some parameters are required depending on the operation:
|
|
|
|
# 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'],
|
|
|
|
comment=['issue', 'comment'],
|
|
|
|
edit=[],
|
|
|
|
edit=[],
|
|
|
|
fetch=['issue'],
|
|
|
|
fetch=['issue'],
|
|
|
|