Skip to content

How to set Glue target

Jason Yonker edited this page Oct 25, 2024 · 1 revision

How to set the target for the Glue orb

When utilizing the Glue orb for CircleCI, you will need to have a thread ID or group ID prepared for your messages to send to. The target field accepts either a thread ID (e.g., thr_ABC123) or a group ID (e.g., grp_XYZ789).

Obtaining a Group or Thread ID

To find the appropriate ID for your target:

  1. Navigate to the desired group or thread in Glue.
  2. Select the option to copy the link to the group or thread.
  3. Extract the ID from the copied URL. Threads start with thr_ and groups start with grp_

Example:

https://app.gluegroups.com/inbox/<thread or group id>

Default Target

The Glue orb expects a default target to be set. In the event no target parameter is provided to the orb, it will fall back on the value stored in the $GLUE_DEFAULT_TARGET environment variable.

This value can be included in the same restricted context holding our OAuth token, which applies to any project within the organization that uses this context.

Alternatively, the context could omit the default target, and it could instead be set individually on each project: CircleCI environment variables.

Custom Target Parameter (and multiple targets)

To change the target your message will be sent to, or to send to multiple targets at the same time, use the target parameter of the notify command. The target parameter can accept one or more IDs separated by a comma.

Example:

target: thr_ABC123,grp_XYZ789