@ExperimentalApi public interface

FieldHtmlFactory

com.atlassian.jira.issue.fields.rest.FieldHtmlFactory
Known Indirect Subclasses

@ExperimentalApi

This interface is considered usable by external developers but its contracts have not stabilized.

Experimental APIs may be changed at any time before being marked @Internal or @PublicApi.

Class Overview

Helper factory to get a list of all the fields required for create, edit and creating subtasks.

Summary

Public Methods
List<FieldHtmlBean> getCreateFields(User user, OperationContext operationContext, Action action, MutableIssue newIssueObject, boolean retainValues, List<String> fieldsToRetain)
Returns a list of fields on the create screen as specified by the newIssueObject skeleton (it contains the project and issue type context) including the project and issue type fields.
List<FieldHtmlBean> getEditFields(User user, OperationContext operationContext, Action action, Issue issue, boolean retainValues)
Returns all the edit fields required for the specified issue object.
List<FieldHtmlBean> getSubTaskCreateFields(User user, OperationContext operationContext, Action action, MutableIssue newIssueObject, boolean retainValues, List<String> fieldsToRetain)

Public Methods

public List<FieldHtmlBean> getCreateFields (User user, OperationContext operationContext, Action action, MutableIssue newIssueObject, boolean retainValues, List<String> fieldsToRetain)

Returns a list of fields on the create screen as specified by the newIssueObject skeleton (it contains the project and issue type context) including the project and issue type fields.

Parameters
user the remote user
operationContext the webwork action performing this operation
action the webwork action performing this operation
newIssueObject skeleton issue object
retainValues If we should keep all the field values when switching from full back to quick edit
fieldsToRetain List of fields to retain when creating multiple issues in a row
Returns

public List<FieldHtmlBean> getEditFields (User user, OperationContext operationContext, Action action, Issue issue, boolean retainValues)

Returns all the edit fields required for the specified issue object. This also includes a comment field if the user has permission to add comments.

Parameters
user the remote user
operationContext the webwork action performing this operation
action the webwork action performing this operation
issue the issue being edited. Used to populate the field values.
retainValues If we should keep all the field values when switching from full back to quick edit
Returns

public List<FieldHtmlBean> getSubTaskCreateFields (User user, OperationContext operationContext, Action action, MutableIssue newIssueObject, boolean retainValues, List<String> fieldsToRetain)

Parameters
user the remote user
operationContext the webwork action performing this operation
action the webwork action performing this operation
newIssueObject skeleton issue object
retainValues If we should keep all the field values when switching from full back to quick edit
fieldsToRetain List of fields to retain when creating multiple issues in a row
Returns