该jira-database-values-plugin-10290.properties
文件是:
# The database connection parameters
database.driver=net.sourceforge.jtds.jdbc.Driver
database.user=...
database.password=...
database.connection.url=jdbc:jtds:sqlserver://localhost:1433/jiradb
# Cache Timeout (= 15 minutes by default). The actual db is queried only once and then the results are kept in the cache for the given timeout. Uncomment the line below to change it.
#cache.timeout=900000
# The SQL Query that will be executed on the database
sql.query=select start_date from date_table where personel like (select reporter from jiraissue where pkey like '${jira.project.key}' )
# The column number (starting from 0) that contains the primary key of the returned data.
primarykey.column.number=0
# The pattern that should be used to render the data in view mode. Use {column_number} as placeholders. You can use HTML, but make sure you close your tags properly!
rendering.viewpattern={0}
# The pattern that should be used to render the data in edit mode. Use {column_number} as placeholders.
rendering.editpattern={0}
# The pattern that should be used to render the data in searcher. Use {column_number} as placeholders.
rendering.searchpattern={0}
当我如下提及特定项目密钥(例如 JRA-621 )时,它可以正常工作..
sql.query=select start_date from date_table where personel like (select reporter from jiraissue where pkey like 'JRA-621' )
但是当我想调用当前项目键值时,如下所示,它不起作用:(
sql.query=select start_date from date_table where personel like (select reporter from jiraissue where pkey like '${jira.project.key}' )
我的表达有什么问题?
id personel start_date end_date
== ======== ========== ========
0 u.name 2012-05-05 NULL
1 u.name2 2012-04-02 NULL
...
谢谢