def lambda_handler(event, context):
event_body = json.dumps(event, indent=2)
summary = event['detail-type'] + event['detail']['type']
issue_dict = {
'project': {'id': 10000},
'summary': summary,
'description': event['detail']['description'],
'issuetype': {'name': 'Bug'},
"customfield_10009": 19
}
new_issue = jira.create_issue(fields=issue_dict)
comment = jira.add_comment(new_issue, event_body)
print("Created new issue and added the :", new_issue)
https://confluence.atlassian.com/jirakb/creating-an-issue-in-a-sprint-using-the-jira-rest-api-875321726.html
followed above link and it says
also when tried
/rest/agile/1.0/board/{boardId}/sprint
to get sprint id i get
{"errorMessages":[],"errors":
{"sprint":"Field 'sprint' cannot be set. It is not on the appropriate screen, or unknown."}
- errorMessages: [
- "The board does not support sprints"
], - errors: { }
}