IssueService IssueInputParameters setApplyDefaultValuesWhenParameterNotProvided

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: High
    • None
    • Affects Version/s: 6.4
    • Component/s: Java API
    • 6.04

      During issue creation, with the IssueService, and an IssueInputParameters bean, setting iip.setApplyDefaultValuesWhenParameterNotProvided(true) results in the Resolution Date being set to the same date as the Creation Date. Given that the workflow of the issue is Unresolved, I think that this should not happen:

      Created:	Just now
      Updated:	Just now
      Resolved:	Just now
      

      The only scenario I can see that this flag would be usable is during an issue workflow transition to resolve. But its odd that no reference or check is made for such.

      Without setApplyDefaultValuesWhenParameterNotProvided(true) issues do not inherit expected default values from Custom Field definitions. Addons would need to query every single custom field, to establish if it has a default value, then set it via IIP. If this is not a bug, what then is the purpose of that method?

              Assignee:
              Unassigned
              Reporter:
              Andy Brook
              Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: