Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

Work Item Filters Does not work with multiple filters #1415

Closed

Description

@brandonmikeska

Describe the bug
When attempting to use workItemFilters for change logs, if you try to use multiple filters, it puts them all as one comma separated filter.

To Reproduce
Add multiple filters to your release definition.

Expected behavior
When the WorkItemUpdater is attempting to match the filters, the for of should loop the filters instead of just always finding one filter.

Screenshots
N/A

Platform Details (please complete the following information):

  • OS: Mac/Windows
  • Version [e.g. CLI Version eg: 1.6.6]: Latest
  • Salesforce CLI(sfdx cli) Version: Latest
  • CI Platform: GitHub

Additional context
This line

workitemFilters.push(releaseDefinition.changelog?.workItemFilters);

Currently is:
workitemFilters.push(releaseDefinition.changelog?.workItemFilters);

Could be changed to:
workitemFilters.push(...releaseDefinition.changelog?.workItemFilters);

I don't have access to create a branch for a pull request but I think if you do this and update the WorkItemUpdater.test.ts to have two string values it should cover the code and a good test to see it not work before this change.

Activity

  1. added
    analysis
    on Oct 3, 2023
  2. azlam-abdulsalam commented on Oct 13, 2023

    @azlam-abdulsalam
    Contributor

    @brandonmikeska you can create a PR from a fork, please feel to create one!

  3. brandonmikeska commented on Oct 20, 2023

    @brandonmikeska
    ContributorAuthor
  4. azlam-abdulsalam commented on Oct 24, 2023

    @azlam-abdulsalam
    Contributor

    Thanks @brandonmikeska , its merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    analysis

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions