Attempting to edit a GitHub->Jira action to work with our Jira setup. We require a comment and a resolution when attempting to force close an issue. So here's what I've attempted
jira.transition_issue(issue, '91', fields={ 'resolution':{'name': 'Done'}})
since the comment is not there, the error will be that a comment is required:
response text = {"errorMessages":["A comment is required to edit this item!"],"errors":{}}jira.transition_issue(issue, '91', fields={ 'resolution':{'name': 'Done'}, 'comment':{'body': 'Transition comment'}})
response text = {"errorMessages":[],"errors":{"comment":"Field does not support update 'comment'"}}Found API definition for transition_issue... specifies that comment is a optional param. duh.
SO this works:
jira.transition_issue(issue, '91', fields={ 'resolution':{'name': 'Done'}}, comment='the comment')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.