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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.