This resource represents the values of custom fields added by Forge apps. Use it to update the value of a custom field on issues.

Hierarchy

  • CommonHttpService
    • IssueCustomFieldValuesAppsService

Constructors

Methods

  • Updates the value of a custom field on one or more issues.

    Apps can only perform this operation on custom fields and custom field types declared in their own manifests.

    Permissions required: Only the app that owns the custom field or custom field type can update its values with this operation.

    The new write:app-data:jira OAuth scope is 100% optional now, and not using it won't break your app. However, we recommend adding it to your app's scope list because we will eventually make it mandatory.

    Parameters

    • params: {
          customFieldValueUpdateDetails: CustomFieldValueUpdateDetails;
          fieldIdOrKey: string;
          generateChangelog?: boolean;
      }
      • customFieldValueUpdateDetails: CustomFieldValueUpdateDetails
        {
        "updates": [
        {
        "issueIds": [
        10010
        ],
        "value": "new value"
        }
        ]
        }
      • fieldIdOrKey: string

        The ID or key of the custom field. For example, customfield_10010.

      • OptionalgenerateChangelog?: boolean

        Whether to generate a changelog for this update.

    Returns Promise<void>

    Returned if the request is successful.

    PUT /rest/api/3/app/field/{fieldIdOrKey}/value @scopes-current @scopes-beta write:app-data:jira

  • Updates the value of one or more custom fields on one or more issues. Combinations of custom field and issue should be unique within the request.

    Apps can only perform this operation on custom fields and custom field types declared in their own manifests.

    Permissions required: Only the app that owns the custom field or custom field type can update its values with this operation.

    The new write:app-data:jira OAuth scope is 100% optional now, and not using it won't break your app. However, we recommend adding it to your app's scope list because we will eventually make it mandatory.

    Parameters

    • params: {
          generateChangelog?: boolean;
          multipleCustomFieldValuesUpdateDetails: MultipleCustomFieldValuesUpdateDetails;
      }
      • OptionalgenerateChangelog?: boolean

        Whether to generate a changelog for this update.

      • multipleCustomFieldValuesUpdateDetails: MultipleCustomFieldValuesUpdateDetails
        {
        "updates": [
        {
        "customField": "customfield_10010",
        "issueIds": [
        10010,
        10011
        ],
        "value": "new value"
        },
        {
        "customField": "customfield_10011",
        "issueIds": [
        10010
        ],
        "value": 1000
        }
        ]
        }

    Returns Promise<void>

    Returned if the request is successful.

  • Method to initialize the class. Normally used to set up validation rules.

    Returns void