agent: |
i4FbkxsC19Ex5W69qdQmPlot resolved tickets per user
Plot resolved tickets per user
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
inputs
outputs
import json
from jira import JIRA
creds = _get_creds(cred_label)['creds']
username = creds['username']
api_key = creds['password']
myjira = None
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)
resolved_issues = {}
if myjira:
for user in users:
issues = myjira.search_issues(f'project={project} AND assignee="{user}" AND status=done')
resolved_issues[user] = len(issues)
print(resolved_issues)
context.plot.xlabel = "users"
context.plot.ylabel = "# resolved issues"
context.plot.title = "Resoved issues per user"
context.plot.add_trace(name="Resoved issues per user", xpts=labels, ypts=values, tracetype="bar")
copied