Get issue action in GitHub package

The Get issue action retrieves the details of a specific issue from a GitHub repository using the issue number.

Overview

The Get issue action retrieves issue data such as ID, number, title, body, and state of the specified issue. The action does not return any data if the issue is deleted or moved to a different repository.

Note: Ensure that the Connect action is configured before proceeding with the Get issue as the Connect action provides the authentication context for the automation session.

Settings

The Get issue action contains the following settings:

Note: All the input fields support string variables. You can create a string variable to hold the appropriate text string and select it in the applicable setting and option.
Session name

Specifies the GitHub session name that the Connect action creates. Use one of the following options to specify the session name:

  • Session name: Enter the session name as text directly or select the string variable that holds the session name text.
  • Variable: Select the GitHub session variable that the Connect action creates.
Owner name
Specifies the name of the GitHub repository owner. The owner can be an organization or a user account.
Repository name
Specifies the name of the GitHub repository from which the action retrieves the issue.
Issue number
Specifies the issue number to retrieve details for.
Assign output to variable
Specifies the variable in which the action stores the response data. The response data includes the following fields:
  • id - The unique identifier of the issue.
  • issueNumber - The unique number identifying the issue within the specified repository.
  • title - The title text of the issue.
  • body - The body text of the issue.
  • state - The state of the issue. The issue state can be OPEN or CLOSED.
  • htmlURL - The direct URL of the issue.
  • user - The user ID of the user who created the issue.
  • assignee - The user ID of the user to whom the issue is assigned.
  • createdAt - The timestamp indicating when the issue was created.
  • updatedAt - The timestamp indicating when the issue was last updated.
  • closedAt - The timestamp indicating when the issue was closed.
  • isPullRequest - The status indicating whether the issue is a pull request.
Use one of the following options to assign the output:
  • Multiple variables: Create and specify individual variables to store specific response data.

    Use the Add variable mapping option to specify the key and corresponding variable type to store the specific response data.

  • Dictionary: Create and specify a dictionary variable to store the entire response data. You can also select an existing dictionary variable.