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

Behavior fieldOptions method on Issue Type does not work if values are translated

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 5.5.6
    • Fix Version/s: 6.1.0
    • Component/s: Behaviours
    • Labels:
      None
    • Critical Points:
      2.6

      Description

      Behavior fieldOptions method on Issue Type does not work if values are translated.

      Steps to reproduce:

      • Add a translation to an issue type
      • Clear the Jira cache using the Built-in script
      • Create a simple behavior initializer like the following:
        import com.atlassian.jira.component.ComponentAccessor
        import com.atlassian.jira.config.IssueTypeManager
        
        def itm = ComponentAccessor.getComponent(IssueTypeManager)
        getFieldById("issuetype").fieldOptions = [
            "10001", //epic
            "10005"  //some other issue type
        ].collect {
            log.warn(it)
            itm.getIssueType(it)
        }
        
      • When you try to create a new issue, the translated issue will not be present within the issue type values (it will be present if you remove the translation)

        Attachments

          Issue Links

            Structure

              Activity

                People

                Assignee:
                Unassigned
                Reporter:
                dmondardo Damiano Mondardo [X] (Inactive)
                Votes:
                3 Vote for this issue
                Watchers:
                12 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Structure Helper Panel