Apps documentation
Dynamic Forms for Jira
Dynamic Forms for Jira
Version 6.x
Version 5.x and older
FAQ
Release notes
Last updated Dec 27, 2018

Hide Field and Set Default Value

This chapter provides information about Hide Field and Set Default Value custom field.

Warning
This feature is deprecated.

Hide Field and Set Default Value is a technical custom field which takes away a field from the edit screen of Jira and allows you to define its default value as well. It may be helpful when you want to hide a field which is required. Usually, it would result in a validation error (you cannot create issues with required fields left blank), but with this custom field you can fill out the field with configured value and hide it automatically.

This feature works with the following custom fields: Text Field (single line), Text Field (multi-line), Number Field, Date Picker, Date Time Picker, User Picker (single user), URL Field.

Additionally, it handles the following standard fields as well: Summary, Priority and Due Date.

Steps

To configure custom field:

  1. Go to Jira Administration > Issues > Custom fields.
  2. Click Add custom field.
  3. Select Deviniti [Dynamic Forms] - Hide Field and Set Default Value from the list (in the advanced section).
  4. Click Next.
  5. Configure the selection criteria for the field: Name and Description (optional).
  6. Click Create.
  7. Select the checkboxes of the screens on which this custom field will be displayed.
  8. Click Update.
  9. Expand the operations menu for the field you have just added, select Configure.
  10. Restrict the context of the field: select projects and issue types.
  11. Click Edit configuration.
  12. Enter the field ID.
    Custom field IDs have the following form: customfield_ID (for example: customfield_10100). For the standard fields, see the table below (column Field ID).
  13. Enter the default value (mandatory for required fields, otherwise optional).
  14. Click Save.
Note

Please remember to configure the default value for fields with a valid textual representation. For non-required fields, you may always left it blank. Here are some examples of correct default values for each custom field type:

Custom Field Type Correct Default Value Notes
Text Field (single line)
Text Field (multi-line)
John Doe -
Number Field 3.14159 -
Date Picker 1/Jul/14 1 July 2014
Date Time Picker 1/Jul/14 6:15 am 1 July 2014 6:15am
User Picker (single user) rsmith Ron Smith with user name “rsmith”
URL Field http://www.deviniti.com/ -

For standard fields:

Standard Field Type Field ID Correct Default Value Notes
Summary summary My First Improvement -
Priority priority 3 Priority ID
Due Date duedate 1/Jul/14 1 July 2014

Result

A new custom field Hide Field and Set Default Value is added to Jira and configured properly.

Tip
To find an ID of custom field, go to the Issues > Custom Fields. Select custom field, click Edit, and check URL address. Example: http://192.168.0.84:8082/secure/admin/EditCustomField!default.jspa?id=10301 When configuring the ID of the custom field you want to hide, remember to prefix it with customfield_ (for example: customfield_10301).

Need help?

If you can’t find the answer you need in our documentation, raise a support request*.

  • Include as much information as possible to help our support team resolve your issue faster.