Skip to content

Conversation

@meenulekha-premakumar
Copy link

What does this PR do?

Currently in the automation platform, while team labels are available, workspace labels are not available fully. This PR includes workspace labels in the dropdown when creating linear tasks in the automation platform

Explain How the Feature Works

The API was only fetching team based labels initially due to the team filter in the API call
Updated the labels property in props.ts to include workspace labels by removing this filter
Used a map to prevent duplicates in the labels

Screenshot 2025-11-17 at 15 41 33

Relevant User Scenarios

Fixes # (issue)

@linear
Copy link

linear bot commented Nov 17, 2025

Copy link

@AdamSelene AdamSelene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ! Left a question and a suggestion

Comment on lines 157 to 162
for (const label of labels.nodes) {
// Prevent duplicates
if (!labelMap.has(label.id)) {
labelMap.set(label.id, label.name);
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can the id be duplicated? That's weird 🤔
They don't use UUIDs? I would expect a workspace label ID to never collide with a team label ID

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the second api call to filter out the labels that are not associated with any team (as they will the global labels available in the workspace) and there is no longer a need to deduplicate a well, thank you!

for (const label of labels.nodes) {
// Prevent duplicates
if (!labelMap.has(label.id)) {
labelMap.set(label.id, label.name);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add an indication that it's a workspace label?
E.g. [Workspace] prefix (or ideally something as explicit but more discreet 😄 )

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The labels are now in alphabetical order and the team labels are displayed first followed by the workspace labels.
For the grouping of the labels, I will contact activepieces if there is a way to do so, thank you!

Copy link

@AdamSelene AdamSelene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks you can submit to ActivePieces!

@meenulekha-premakumar meenulekha-premakumar changed the title fix: include workspace lavels in the issue label dropdown in automation platform fix: include workspace labels in the issue label dropdown in automation platform Nov 18, 2025
@AdamSelene AdamSelene merged commit 7e04889 into main Dec 9, 2025
16 checks passed
@AdamSelene AdamSelene deleted the meenu-lekhapremakumar/q-1756-linear-include-workspace-labels-in-dropdown branch December 9, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants