i am trying to update jira status with jira-python. My code doesn't throw any error but nothing is gets updated ,the status of the issues remains same(I'm beginner trying to learn python)
project = jira.projects('project=')
for project in projects:
if issue.fields.status in ('pending'):
jira.transition_issue(issue, transition='closed')
print('')
return "successful"