This resource represents workflow transition properties, which provides for storing custom data against a workflow transition. Use it to get, create, and delete workflow transition properties as well as get a list of property keys for a workflow transition. Workflow transition properties are a type of entity property.

Hierarchy

  • CommonHttpService
    • WorkflowTransitionPropertiesService

Constructors

Methods

  • Deletes a property from a workflow transition. Transition properties are used to change the behavior of a transition. For more information, see Transition properties and Workflow properties.

    Permissions required: Administer Jira global permission.

    Parameters

    • params: {
          key: string;
          transitionId: number;
          workflowMode?: "live" | "draft";
          workflowName: string;
      }
      • key: string

        The name of the transition property to delete, also known as the name of the property.

      • transitionId: number

        The ID of the transition. To get the ID, view the workflow in text mode in the Jira admin settings. The ID is shown next to the transition.

      • OptionalworkflowMode?: "live" | "draft"

        The workflow status. Set to live for inactive workflows or draft for draft workflows. Active workflows cannot be edited.

      • workflowName: string

        The name of the workflow that the transition belongs to.

    Returns Promise<void>

    DELETE /rest/api/3/workflow/transitions/{transitionId}/properties @scopes-current manage:jira-configuration @scopes-beta delete:workflow.property:jira

  • Returns the properties on a workflow transition. Transition properties are used to change the behavior of a transition. For more information, see Transition properties and Workflow properties.

    Permissions required: Administer Jira global permission.

    Parameters

    • params: {
          includeReservedKeys?: boolean;
          key?: string;
          transitionId: number;
          workflowMode?: "live" | "draft";
          workflowName: string;
      }
      • OptionalincludeReservedKeys?: boolean

        Some properties with keys that have the jira. prefix are reserved, which means they are not editable. To include these properties in the results, set this parameter to true.

      • Optionalkey?: string

        The key of the property being returned, also known as the name of the property. If this parameter is not specified, all properties on the transition are returned.

      • transitionId: number

        The ID of the transition. To get the ID, view the workflow in text mode in the Jira administration console. The ID is shown next to the transition.

      • OptionalworkflowMode?: "live" | "draft"

        The workflow status. Set to live for active and inactive workflows, or draft for draft workflows.

      • workflowName: string

        The name of the workflow that the transition belongs to.

    Returns Promise<WorkflowTransitionProperty>

    200 response

    example:

    [
    {
    "id": "jira.i18n.title",
    "key": "jira.i18n.title",
    "value": "some.title"
    },
    {
    "id": "jira.permission",
    "key": "jira.permission",
    "value": "createissue"
    }
    ]

    GET /rest/api/3/workflow/transitions/{transitionId}/properties @scopes-current manage:jira-configuration @scopes-beta read:workflow.property:jira

  • Updates a workflow transition by changing the property value. Trying to update a property that does not exist results in a new property being added to the transition. Transition properties are used to change the behavior of a transition. For more information, see Transition properties and Workflow properties.

    Permissions required: Administer Jira global permission.

    Parameters

    • params: {
          key: string;
          transitionId: number;
          workflowMode?: "live" | "draft";
          workflowName: string;
          workflowTransitionProperty: WorkflowTransitionProperty;
      }
      • key: string

        The key of the property being updated, also known as the name of the property. Set this to the same value as the key defined in the request body.

      • transitionId: number

        The ID of the transition. To get the ID, view the workflow in text mode in the Jira admin settings. The ID is shown next to the transition.

      • OptionalworkflowMode?: "live" | "draft"

        The workflow status. Set to live for inactive workflows or draft for draft workflows. Active workflows cannot be edited.

      • workflowName: string

        The name of the workflow that the transition belongs to.

      • workflowTransitionProperty: WorkflowTransitionProperty

    Returns Promise<WorkflowTransitionProperty>

    200 response

    example:

    {
    "key": "jira.i18n.title",
    "value": "some.title",
    "id": "jira.i18n.title"
    }

    PUT /rest/api/3/workflow/transitions/{transitionId}/properties @scopes-current manage:jira-configuration @scopes-beta write:workflow.property:jira, read:workflow.property:jira

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

    Returns void