Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JSWCLOUD-10333

Updating epic link field through REST causes 500 Internal Error

XMLWordPrintable

      Was raised as part of a support ticket.
      This seems to be caused because the EpicLinkCFType returns an IssueImpl object, which at the side of JIRA gets casted to a String (which throws an exception) (see TextCustomFieldOperationsHandler.getInitialValue()).
      It's considered to be a TextCustomFieldOperationsHandler because of this check in CustomFieldImpl:

      public RestFieldOperationsHandler getRestFieldOperation()
          {
              CustomFieldType customFieldType = getCustomFieldType();
              if (customFieldType instanceof RestCustomFieldTypeOperations)
              {
                  return ((RestCustomFieldTypeOperations) customFieldType).getRestFieldOperation(this);
              }
              return new TextCustomFieldOperationsHandler(this, getI18nHelper());
          }
      

              Unassigned Unassigned
              jderaedt Jeroen De Raedt
              Votes:
              70 Vote for this issue
              Watchers:
              49 Start watching this issue

                Created:
                Updated:
                Resolved: