Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-411

Returning null does not suppress the output of a Script Field.

    Details

    • Type: Bug
    • Status: Done
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 2.0.7
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      JIRA v5.1.1#772, Groovy Runner 2.0.7

    • Critical Points:
      0

      Description

      Dear Jamie. I want to compute a Script Field that may or may not have a obtainable value. If the value cannot be computed, I want to suppres the Script Field on the View Issue screen. In the documentation you write:

      If you don't want the calculated value to appear you should return null.

      However, when I do so, the field will be shown on the View Issue screen with a value of "null". I attached screenshots of my configuration (after executing a preview computation) and the output. Is this a bug, or did I miss something?

      Anyways, thanks for this great plugin.

        Attachments

          Activity

            People

            Assignee:
            jechlin Jamie Echlin
            Reporter:
            mra Marcel R. Ackermann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: