Dynamic Query is a query that contains one or more values of certain issue fields in the WHERE clause.
...
- Create the necessary custom fields in Jira and remember their IDs. They should have a customfield_yyyyy format, where yyyyy is a number.
To find out a custom field ID:- Go to the Custom Fields section in Jira administration.
- Locate your custom field and click Configure from the actions menu on the right.
You can see your custom field ID as a parameter in the url:
/secure/admin/ConfigureCustomField!default.jspa?customFieldId=yyyyy.
- After you go through the steps from the Configuration page and the data source configuration page, go to Administration > CPRIME PLUGINS CONFIGURATION > Database Custom Field.
- Fill in the Sql Query field for the main database custom field (customfield_xxxxx) with a dynamic clause of the following format:
"WHERE col1={customfield_yyyyy} AND col2={customfield_zzzzz} OR col2={customfield_ttttt}"). - Save the configuration.
...