I'm trying to get information based on the input provided by user and then passing it in a function which gives back the issues created. But I'm not able to pass the objects in search_issue query?
def issuecreated(projectname, reportername, datefrom, dateto):
print projectname, reportername, datefrom, dateto
for i in jira.search_issues('project = projectname AND reporter = reportername AND created > datefrom and created < dateto'):
return i
projectname=raw_input("Please give the project name: ")
reportername=raw_input("Please provide the name of creator: ")
datefrom=raw_input("Please provide the time interval for which you want issues: From ")
dateto=raw_input("Please provide the time interval for which you want issues: To ")
print projectname, reportername, datefrom, dateto
issuecreated(projectname, reportername, datefrom, dateto)
I'm able to see the inputs in the function by it is not getting passed in jira.search_issues.
Please help.
Thanks!