Filter by label when in Closed / All tab on Jira issues list does not keep current tab
On the Jira issues list page (with jira_issues_list
feature flag enabled), when in the Closed / All tab and trying to filter by label, the link opens the default tab which is Open
. This causes inconsistent behaviour where you can be looking at 1 a closed issue but after you apply the filter, there are none because there are no open issues with that label.
Steps to reproduce:
-
If not already enabled, enable the
jira_issues_list
feature flag. Enable the Jira issues list integration and populate a few Jira issues with at least one in a "closed" state with a label applied. -
Go to the Jira issues list. For example
/justin-ho/alpha/-/integrations/jira/issues
. -
Select the Closed tab to filter by closed issues.
/justin-ho/alpha/-/integrations/jira/issues?state=closed&page=1&sort=created_desc
-
Select a label to filter by. For example,
devops::plan
in the screenshot. -
Observe that the current tab is now
Open
and the label is applied./justin-ho/alpha/-/integrations/jira/issues?state=opened&page=1&sort=created_desc&labels[]=devops::plan
What should actually happen:
- The label should be applied and the current tab still open. In the example above, the URL will look like this
/justin-ho/alpha/-/integrations/jira/issues?state=closed&page=1&sort=created_desc&labels[]=devops::plan