Sign in

Create a JIRA ticket

There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
from jira import JIRA creds = _get_creds(cred_label)['creds'] username = creds['username'] api_key = creds['password'] myjira = None issue_id = "" if username and api_key and jira_server: myjira = JIRA( server=jira_server, basic_auth=(username, api_key) ) else: _problem = True msg = "Missing username or API key" print(msg) if myjira: issue_dict = { "project" : project, "summary" : summary, "description" : description, "issuetype" : {"name" : "Task"} } new_issue = myjira.create_issue(fields=issue_dict) issue_id = new_issue.key print(issue_id)
copied