Versions Compared

Key

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

...

  1. Log into your Jira as Admin.
  2. Go to Administration > Add-ons > Database Custom Field and ensure that your dynamic sql is configured.
    Image Removed
    Image Added

  3. The database Product Name custom field depends on the Published(customfield_11900) and Not published(customfield_11901) custom fields.
  4. Go to the issue and try to edit it. For this example, we used the same issue as on the Using autocomplete page. 
    So it looks like in the following picture on edit:
    Image Removed
    Image Added

  5. Let's change the values for the Published and Not published fields, that we created for this example. These fields have the following ids: customfield_11900(Published) and customfield_11901(Not published). These are simple Jira custom fields, of the "Text Field (< 255 characters)" type.
  6. For the Published field, type "jjupin". When you leave the input textbox for the Published field, the values for Product Name and Product Id fields are dynamically changed to empty values, and the available list of values for the Product Name is updated. This will be visible when you try to enter a new value by using autocomplete.
    Image Removed
    Image Added

  7. Type a value for the Not published field, "databasecf" for instance.
  8. Use autocomplete to see the values available for the main database custom field – Product Name.
    The only option left is the one displayed, which is equal to the value of the Published field. On selection, the child database custom field is automatically filled in with the id of the selected product.
    Image Removed
    Image Added

    Note

    Every database custom field has a default value: blank, displayed in a the field of the Select List type as "None".


  9. After we save the issue, the values for the custom fields are displayed in the view issue screen:
    Image Removed
    Image Added

In a similar way, you can use a dynamic query to retrieve values for a database custom field in a select list.

...

For the next example we used a configuration where parent fields depend on each other, and when one field changes, all of the dependent fields are changed as well.Image Removed

Image Added

This means that:

  • Product Name depends on Category and has Product Code
  • Version depends on Product Name and has Release Date.

...

Image Added

If you change the Category field from "support" to "services", all values are changed.Image Removed

Image Added

Warning

Note that if the session expires, the autocomplete, or other requests will not be completed, but Jira can still update the issue if the password of the user is kept in memory.

...