Skip to content

Issue Management

Create and manage issues, comments and attached elements, and exchange issues through BCF files or PDF markups.

Access this group through api.tapir.issue_management.

Commands

For exceptions shared by Unified API commands, see error handling.

add_comment_to_issue

add_comment_to_issue(
    issue_id: IssueId,
    text: str,
    author: None | str = None,
    status: IssueCommentStatus | None = None,
) -> SuccessfulExecutionResult

Adds a new comment to the specified issue.

Parameters:

  • issue_id (IssueId) –
  • text (str) –

    Comment text to add.

  • author (None | str, default: None ) –

    The author of the new comment.

  • status (IssueCommentStatus | None, default: None ) –

Returns:

attach_elements_to_issue

attach_elements_to_issue(
    issue_id: IssueId,
    elements: list[ElementIdArrayItem],
    type: IssueElementType,
) -> SuccessfulExecutionResult

Attaches elements to the specified issue.

Parameters:

Returns:

create_issue

create_issue(
    name: str,
    parent_issue_id: IssueId | None = None,
    tag_text: None | str = None,
) -> IssueId

Creates a new issue.

Parameters:

  • name (str) –

    The name of the issue.

  • parent_issue_id (IssueId | None, default: None ) –
  • tag_text (None | str, default: None ) –

    Tag text of the issue, optional.

Returns:

delete_issue

delete_issue(
    issue_id: IssueId,
    accept_all_elements: None | bool = None,
) -> SuccessfulExecutionResult

Deletes the specified issue. With dryRun true nothing is deleted and no undo step is created: the response has dryRun set to true, and wouldDelete when the issue exists.

Parameters:

  • issue_id (IssueId) –
  • accept_all_elements (None | bool, default: None ) –

    Accept all creation/deletion/modification of the deleted issue. By default false.

Returns:

delete_issue_dry_run

delete_issue_dry_run(
    issue_id: IssueId,
    accept_all_elements: None | bool = None,
) -> DeleteIssueResult

Preview this command without applying its changes. Deletes the specified issue. With dryRun true nothing is deleted and no undo step is created: the response has dryRun set to true, and wouldDelete when the issue exists.

Parameters:

  • issue_id (IssueId) –
  • accept_all_elements (None | bool, default: None ) –

    Accept all creation/deletion/modification of the deleted issue. By default false.

Returns:

detach_elements_from_issue

detach_elements_from_issue(
    issue_id: IssueId, elements: list[ElementIdArrayItem]
) -> SuccessfulExecutionResult

Detaches elements from the specified issue.

Parameters:

Returns:

export_issues_to_bcf

export_issues_to_bcf(
    export_path: str,
    use_external_id: bool,
    align_by_survey_point: bool,
    issues: None | list[IssueIdArrayItem] = None,
    *,
    overwrite: None | bool = None,
) -> SuccessfulExecutionResult

Exports specified issues to a BCF file. With overwrite false it refuses to replace an existing file.

Parameters:

  • export_path (str) –

    The os path to the bcf file, including it's name. An existing file is overwritten, unless overwrite is false.

  • use_external_id (bool) –

    Use external IFC ID or Archicad IFC ID as referenced in BCF topics.

  • align_by_survey_point (bool) –

    Align BCF views by Archicad Survey Point or Archicad Project Origin.

  • issues (None | list[IssueIdArrayItem], default: None ) –

    Leave it empty to export all issues.

  • overwrite (None | bool, default: None ) –

    Optional, true by default. false refuses to export when a file already exists at exportPath, and writes nothing.

Returns:

get_comments_from_issue

get_comments_from_issue(issue_id: IssueId) -> list[Comment]

Retrieves comments information from the specified issue.

Parameters:

Returns:

  • list[Comment] –

    A list of existing comments.

get_elements_attached_to_issue

get_elements_attached_to_issue(
    issue_id: IssueId, type: IssueElementType
) -> list[ElementIdArrayItem]

Retrieves attached elements of the specified issue, filtered by attachment type.

Parameters:

Returns:

get_issues

get_issues() -> list[Issue]

Retrieves information about existing issues.

Returns:

  • list[Issue] –

    A list of existing issues.

import_issues_from_bcf

import_issues_from_bcf(
    import_path: str, align_by_survey_point: bool
) -> SuccessfulExecutionResult

Imports issues from the specified BCF file.

Parameters:

  • import_path (str) –

    The os path to the bcf file, including it's name.

  • align_by_survey_point (bool) –

    Align BCF views by Archicad Survey Point or Archicad Project Origin.

Returns:

import_markups_from_pdf

import_markups_from_pdf(
    pdf_file_path: str,
) -> ImportMarkupsFromPDFResult

Imports the markups of the specified PDF file as issues, like Issue Manager > Import PDF markups, without any dialog and without opening the Issue Manager palette, and reports the issues it created. Available from Archicad 29.

Parameters:

  • pdf_file_path (str) –

    The os path to the PDF file with the markups, including it's name.

Returns:

These include the parameter and result models used inside the client. The command signatures above show what to pass and what is returned.