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)
followed above link and it says
"errorMessages":[],"errors": {"sprint":"Field 'sprint' cannot be set. It is not on the appropriate screen, or unknown."}
also when tried
/rest/agile/1.0/board/{boardId}/sprint
to get sprint id i get
{
}
Hello @Thulasi_savedroid '
From the message error you posted, it seems like the sprint field is not on the create issue screen of your Bug.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.