Class IssueCustomFieldsResource
java.lang.Object
com.atlassian.jira.projectconfig.rest.global.IssueCustomFieldsResource
@Path("issuecustomfields")
@Consumes("application/json")
@Produces("application/json")
public class IssueCustomFieldsResource
extends Object
Allows custom fields to be added to an issue's create, edit, and view screens.
- Since:
- v6.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionIssueCustomFieldsResource(IssueManager issueManager, CustomFieldManager fieldManager, IssueFields fields) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseaddCustomField(long issueId, String fieldId) Add a custom field to the create, edit, and view screens that are currently used by an issue.jakarta.ws.rs.core.ResponsegetFields(long issueId, boolean onAllScreensFlag)
-
Constructor Details
-
IssueCustomFieldsResource
@Inject public IssueCustomFieldsResource(IssueManager issueManager, CustomFieldManager fieldManager, IssueFields fields)
-
-
Method Details
-
addCustomField
@POST @Path("{issue}") public jakarta.ws.rs.core.Response addCustomField(@PathParam("issue") long issueId, String fieldId) Add a custom field to the create, edit, and view screens that are currently used by an issue.- Parameters:
issueId- the ID of the issuefieldId- the ID of the field to add to the screens.
-
getFields
@GET @Path("{issue}/fields") public jakarta.ws.rs.core.Response getFields(@PathParam("issue") long issueId, @DefaultValue("false") @QueryParam("onAllScreensFlag") boolean onAllScreensFlag)
-