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

Request reference to the Issue object in the CustomFieldType interface method validateFromParams

    XMLWordPrintable

Details

    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      A custom field may be sensitive to the project context of the issue currently being validated. For instance I would like to get the list a actors associated with a project role of the project referenced by the issue being validated. The CustomFieldType interface method "public void validateFromParams(CustomFieldParams relevantParams, ErrorCollection errorCollectionToAddTo, FieldConfig config)" does not pass the Issue reference so I can't determine the projectId. I have tried different hacks to get access to the current issue (i.e. getting the "EditIssue" action from the Action context. The problem here is that if you edit another issue in another browser tab of the same browser, the second issue will overwrite the "Edit Issue" Action before the first Issue is validated.
      If system field types get an Issue reference in the validation method why don't custom field types.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              6d3b5d1d8e00 Dominick Moré
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: