Before creating an issue I need to see if there's an issue with similar summary(name) and active and only create if there's none and append it to the existing issue if there's one already.
1.I want to send summary as a variable
p_summary="XYZ.dtsx
jira.search_issues('project=DI and summary~p_summary and status="To Do"', maxResults=5)
Ticket_id=issue.key
print(Ticket_id)
2.when there's no matching issue it doesn't result anything for the below.How do I handle it.
Ticket_id=issue.key
print(Ticket_id)