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

Behaviours - setRequired method for Tempo Account and Teams Field allows you to submit the value None

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Low
    • Resolution: Done
    • 5.5.9.1-jira8
    • 6.13.0
    • Behaviours
    • None
    • SR4J Sprint 87, SR4J Sprint 88
    • 4.7

    Description

       

      Behaviours setRequired method treats the None value in the Tempo Account field as a valid value and allows the submition of the issue. This is because Tempo set the value to the string "-1" rather than null or empty.

       

      How to reproduce:
      1. Install any Tempo plugin (e.g. Tempo Timesheets)
      2. Add new Tempo Account, link it with any project
      3. Add account field on creation screen of any issue type in that project
      4. Create new Behaviours, mappings for that project/issue type combo mentioned earlier
      5. Add Initialiser with this code getFieldByName("Account").setRequired(true)
      6. Try to Create issue - in dialog window, the Account field will have a red star and will look like required, but if you select "None" for Account field, the issue will still be created

       

      Attachments

        Issue Links

          Activity

            People

              jechlin Jamie Echlin
              mclark Matthew Clark
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: