This resource provides validation for project keys and names.

Hierarchy

  • CommonHttpService
    • ProjectKeyAndNameValidationService

Constructors

Methods

  • Checks that a project name isn't in use. If the name isn't in use, the passed string is returned. If the name is in use, this operation attempts to generate a valid project name based on the one supplied, usually by adding a sequence number. If a valid project name cannot be generated, a 404 response is returned.

    Permissions required: None.

    Parameters

    • params: {
          name: string;
      }
      • name: string

        The project name.

    Returns Promise<string>

    Returned if the request is successful.

    example:

    "Valid Project Name Example"
    

    GET /rest/api/3/projectvalidate/validProjectName @scopes-current read:jira-work @scopes-beta read:project:jira

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

    Returns void