jco-filter

The jco-filter shortcode

Description

With the jco-filter shortcode you can display a sortable table with the result of a Jira JQL filter.

Examples and Outputs

[jco-filter host="1071" jql="project=ADMIN AND resolution=unresolved" fields="issuetype,priority,key,summary,status" showcount="true"]

Format

[jco-filter parameter="value" ...]

If you do not want to provide the fields parameter, you can define the default fields in the options of the Lewe Jira Connector in the WordPress back-end.

If you provide the fields parameter, none of the default fields will be shown. In that case you need to specify all the fields you want to see.

Custom Fields

Custom fields can be added to your jql= parameter in the format of:

cf{{1234}}

The above example is translated by the Lewe Jira Connector into cf[1234] which is the correct JQL format.

In the fields= parameter you must use the format customfield_1234 to add the column to the output.

Jira only delivers back the value of your custom field, not its name in your Jira instance. If you want your column to have a speaking name, you can add on via the headers= parameter.

Let's say you have a custom field "Customer" in your Jira instance with ID 1234. The following shortcode would display the field with a proper column header:

[jco-filter host="398" jql="project=ADMIN AND resolution=unresolved AND cf{{1234}} = ACME" fields="issuetype,priority,key,summary,status,customfield_1234" showcount="true" headers="T,P,Key,Summary,Status,Customer"]

Last updated