Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-74991

Default Value on Edit Screen or Transition Screen NOT working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a bug
    • High
    • None
    • 8.16.2, 8.5.19, 8.13.27, 8.20.16, 9.6.0
    • Custom fields
    • None
    • 8.05
    • 2
    • Severity 2 - Major
    • 1
    • Hide
      Atlassian Update – 7 April 2023

      Hi everyone,

      Thank you for taking the time to file and comment on this issue. We’ve reviewed it and decided to close it as “Not a bug”. The situation described in the issue is an expected behaviour. Creating a new configuration context and setting a default value for a custom field does not affect any custom fields in issues that were created before the default was set - it affects only newly created issues.

      There is a feature request to update existing custom field values if the new default value was set, if you would like to see it implemented please leave your comments and votes there.

      Best regards,
      Daria Misiowiec
      Software Engineer, Jira DC

      Show
      Atlassian Update – 7 April 2023 Hi everyone, Thank you for taking the time to file and comment on this issue. We’ve reviewed it and decided to close it as “Not a bug”. The situation described in the issue is an expected behaviour. Creating a new configuration context and setting a default value for a custom field does not affect any custom fields in issues that were created before the default was set - it affects only newly created issues. There is a feature request to update existing custom field values if the new default value was set, if you would like to see it implemented please leave your comments and votes there. Best regards, Daria Misiowiec Software Engineer, Jira DC

    Description

      Issue Summary

      When Creating a Custom field, with 2 or more Configuration Contexts, in which have different Default Values.

      If there are issues, which have no value in this custom field, when showing the Edit Screen or the Transition Screen, It shows the first value of the list and does not show the default value as mentioned in the configuration context.

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Create a Custom field "select list (single Option)"
      2. Add 2 values (yes and No)
      3. Create 2 configuration contexts, one for Default yes and one for Default no
      4. Assign Configuration Context Default Yes to Project A
      5. Assign Configuration Context Default No to Project B.
      if You add to all screens:
      • On Create Screen: It will work as expected
      • On Edit Screen: (on old issues) that do not have a value assigned to this custom field, the Configuration Context is not respected.
      • On Transition Screen: (on old issues) that do not have a value assigned to this custom field, the Configuration Context is not respected.
      • This will happen for tickets that are not asking for this value when create and only ask for this custom value for any transition screen.

      Expected Results

      When an Issue does not have a value assigned to this custom field, it should show the value configured as default, so this can be saved.

      Actual Results

      The custom field is showing the first value of the List.

      Workaround

      Make sure that the value you want to have as Default is the first on the list of options. It will be used as default then.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              d001924c850a Francisco Crespo Smith
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: