Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Configuration

Configure the Power Database Fields plugin following the steps below:

     1. Log in as JIRA administrator. Go to the Administration->'Add-ons' menu, 'Manage add-ons' sub-menu. Make sure that both plugins katl-commons and Power Database Fields are enabled.

Image Removed

    

    2. From JIRA Administration Administration->'Issues' menu, 'Custom fields' sub-menu add the To configure Power Database Fields PRO, perform the following steps:

  1. Log into your Jira as Admin.
  2. From Jira administration console, go to Add-ons, and click the Manage add-ons link.
  3. Ensure that both katl-commons and Power Database Fields PRO are enabled.
  4. On the Administration page, click Issues, and go to the Custom fields section.
  5. Add custom fields of the following types

...

  1. :

    ...

      • Database Information

    ...

      • (database custom field)

    ...

    ...

      • Database Child Information

    ...

      • (child for a database custom field)

    ...

    ...

      • Data Table Information

    ...

    Image Removed
        

    ...


      • You must add at least one

    ...

      • custom field

    ...

      • so that you have something to configure

    ...

      • .

    ...

      •  Add as many Database Information or Database Child Information custom fields as you need.

        

    ...


      • Image Added

    1. Go to Administration > Add-ons

    ...

    1. >Database Custom Field

    ...

    Image Removed

        

        4. Configure the parameters for Database Custom Field

    The first parameter to configure is the timeout(in seconds) for the cache of the configuration values. If no value is specified, the default value used is 300.

    Image Removed

    ...

    1. configuration page.
    2. Configure the parameters as described in the table below. The following picture shows an example of how you can configure the fields.

      Image Added

    3. Click Save configuration to save changes.
    4. Configure the parameters for the Data Table custom field.

    This is it! If everything is configured correctly, in the Create or Edit page for a ticket you should be able to see the values for the main database custom fields configured, and when selecting one of the values for a main database custom field, the values for the child fields for the main database custom field will be automatically filled in.


    Fields description

    For each main database custom field that you added at step 2, there is a set of parameters to configure in on this page. For each entry (main database custom field) choose:specify the following parameters.

    FieldDescription
    Configuration TimeoutTimeout (in seconds) for the cache of the configuration values. If no value is specified, the default value is 300.
    Type of Custom Field

    ...

    • Select list

    ...

    • – the values of the field appear in a combo box.
      or
    • Autocomplete – the values of the field

    ...

    • appear depending on the letters typed in the field, on

    ...

    • the ticket screen.
    Multiple Values

    ...

    If checked, you can select multiple values from the database for the given database custom field. If clear, you can configure child custom fields described below.
    Add None Option

    ...

    Available for

    ...

    the select list

    ...

    types only. You can choose to

    ...

    show None option for each individual database custom field.
    Accept Any Value

    ...

    Available for

    ...

    the autocomplete types only. When this flag is checked, you can enter free text in the dbcf field input, even if the relevant entry is not listed in the database.
    Database(JNDI name)

    ...

    The JNDI data source. To configure the data source,

    ...

    ...

    The sql query to be run, for instance SELECT col1, col2, col3, col4 FROM testTable. It can either be

    ...

    a simple sql, or

    ...

    ...

    .

    Warning
    titleOracle

    If you use Oracle, the ";" character placed at the end of the query causes a SQL error

    ...

    because ";" is considered to be an invalid character.

    ...

    Remove this character from the query.


    Column

    ...

    One of the columns selected by the sql query, for instance col1. This column will be used to get the values for

    ...

    a given database custom field.

    ...

    You can also make it read only.
    Add child, Remove child

    If you want, you can configure

    ...

    a list of child database custom fields using

    ...

    the Add/Remove child

    ...

     buttons. The child fields are associated to the main database custom field.

    For each child, configure the following fields:

    • Child Custom Field

    ...

    • One of the child database custom fields

    ...

    • that you added. These are visible for selection only when multiple values flag isn't checked for the parent database custom field.
    • Column

    ...

    • – One of the columns selected by the sql query, for instance col2. This column will be used to get the value for this child

    ...

    • field. The value for the child field is completed automatically after a value for the main database custom field is selected

    ...

         Save the settings using the "Save configuration" button.

         5. Configure the parameters for Data Table Custom Field

    ...

    • .

    See also