Hierarchy

  • CommonHttpService
    • AppMigrationService

Constructors

  • Internal

    Create a new instance of the service.

    Parameters

    • getClientInstance: (() => CommonHttpClient)
        • (): CommonHttpClient
        • Returns CommonHttpClient

    Returns AppMigrationService

Methods

  • Updates the values of multiple entity properties for an object, up to 50 updates per request. This operation is for use by Connect apps during app migration.

    Parameters

    • params: {
          atlassianTransferId: string;
          entityPropertyDetailses: EntityPropertyDetails[];
          entityType:
              | "IssueProperty"
              | "CommentProperty"
              | "DashboardItemProperty"
              | "IssueTypeProperty"
              | "ProjectProperty"
              | "UserProperty"
              | "WorklogProperty"
              | "BoardProperty"
              | "SprintProperty";
      }
      • atlassianTransferId: string

        The app migration transfer ID.

      • entityPropertyDetailses: EntityPropertyDetails[]
      • entityType:
            | "IssueProperty"
            | "CommentProperty"
            | "DashboardItemProperty"
            | "IssueTypeProperty"
            | "ProjectProperty"
            | "UserProperty"
            | "WorklogProperty"
            | "BoardProperty"
            | "SprintProperty"

        The type indicating the object that contains the entity properties.

    Returns Promise<void>

  • Returns configurations for workflow transition rules migrated from server to cloud and owned by the calling Connect app.

    Parameters

    • params: {
          atlassianTransferId: string;
          workflowRulesSearch: WorkflowRulesSearch;
      }
      • atlassianTransferId: string

        The app migration transfer ID.

      • workflowRulesSearch: WorkflowRulesSearch

    Returns Promise<WorkflowRulesSearchDetails>

    Returned if the request is successful.

    example:

    {
    "workflowEntityId": "a498d711-685d-428d-8c3e-bc03bb450ea7",
    "invalidRules": [
    "55d44f1d-c859-42e5-9c27-2c5ec3f340b1"
    ],
    "validRules": [
    {
    "workflowId": {
    "name": "Workflow name",
    "draft": true
    },
    "postFunctions": [
    {
    "id": "123",
    "key": "WorkflowKey",
    "configuration": {
    "value": "WorkflowValidator"
    },
    "transition": {
    "name": "transition",
    "id": 123
    }
    }
    ],
    "conditions": [
    {
    "id": "123",
    "key": "WorkflowKey",
    "configuration": {
    "value": "WorkflowValidator"
    },
    "transition": {
    "name": "transition",
    "id": 123
    }
    }
    ],
    "validators": [
    {
    "id": "123",
    "key": "WorkflowKey",
    "configuration": {
    "value": "WorkflowValidator"
    },
    "transition": {
    "name": "transition",
    "id": 123
    }
    }
    ]
    }
    ]
    }
  • Method to initialize the class. Normally used to set up validation rules.

    Returns void