JiraPython:无法将用户输入传入吉拉。搜索问题?

2024-05-16 00:01:17 发布

您现在位置:Python中文网/ 问答频道 /正文

我不能将用户输入传递到JQL查询中?我没试过别的办法,但没用。在

这是密码。在

project_name=raw_input("Please give the project name:  ")
reporter_name=raw_input("Please provide the name of creator:   ")
date_from=raw_input("Please provide the time interval for which you want issues: From ")
date_to=raw_input("Please provide the time interval for which you want issues: To ")"""

total_issues = jira.search_issues('project = %s AND reporter = %s AND created > %s and created < %s' % (projectname, reportername, datefrom, dateto))
print total_issues

它给了我:jira.exceptions.JIRAError

^{pr2}$

我们真的可以把变量传递给JQL查询吗?JQL允许这样吗?


Tags: thenameprojectwhichforinputdateraw